pop_back {cppcontainers}R Documentation

Remove an element from the back

Description

Remove an element from the back of the container by reference.

Usage

pop_back(x)

Arguments

x

A CppVector, CppDeque, or CppList object.

Value

Invisibly returns NULL.

See Also

back, emplace_back, pop, pop_front, push_back.

Examples

l <- cpp_list(4:6)
l
# 4 5 6

pop_back(l)
l
# 4 5


[Package cppcontainers version 1.0.0 Index]