insert_after {cppcontainers} | R Documentation |
Add elements
Description
Add elements to a forward list by reference.
Usage
insert_after(x, values, position = NULL)
Arguments
x |
A CppForwardList object. |
values |
Values to add to |
position |
Index behind which to insert elements. |
Value
Invisibly returns NULL
.
See Also
emplace, emplace_after, insert, insert_or_assign.
Examples
v <- cpp_forward_list(4:6)
v
# 4 5 6
insert_after(v, 10:11, 2)
v
# 4 5 10 11 6
[Package cppcontainers version 1.0.0 Index]