pop_front: Remove an element from the front

pop_frontR Documentation

Remove an element from the front

Description

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

Usage

pop_front(x)

Arguments

x

A CppDeque, CppForwardList, or CppList object.

Value

Invisibly returns NULL.

See Also

emplace_front, front, pop, pop_back, push_front.

Examples

d <- cpp_deque(4:6)
d
# 4 5 6

pop_front(d)
d
# 5 6


cppcontainers documentation built on Sept. 9, 2025, 5:55 p.m.