push_back {cppcontainers} | R Documentation |
Add an element to the back
Description
Add an element to the back of a container by reference.
Usage
push_back(x, value)
Arguments
x |
A CppVector, CppDeque, or CppList object. |
value |
A value to add to |
Value
Invisibly returns NULL
.
See Also
back, emplace_back, insert, pop_back, push_front.
Examples
v <- cpp_vector(4:6)
v
# 4 5 6
push_back(v, 14L)
v
# 4 5 6 14
[Package cppcontainers version 1.0.0 Index]