Learn R Programming

cppcontainers (version 1.0.4)

pop_back: Remove an element from the back

Description

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

Usage

pop_back(x)

Value

Invisibly returns NULL.

Arguments

x

A CppVector, CppDeque, or CppList object.

See Also

back, emplace_back, pop, pop_front, push_back.

Examples

Run this code
l <- cpp_list(4:6)
l
# 4 5 6

pop_back(l)
l
# 4 5

Run the code above in your browser using DataLab