Learn R Programming

cppcontainers (version 1.0.4)

pop_front: Remove an element from the front

Description

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

Usage

pop_front(x)

Value

Invisibly returns NULL.

Arguments

x

A CppDeque, CppForwardList, or CppList object.

See Also

emplace_front, front, pop, pop_back, push_front.

Examples

Run this code
d <- cpp_deque(4:6)
d
# 4 5 6

pop_front(d)
d
# 5 6

Run the code above in your browser using DataLab