pop_front {cppcontainers}R 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


[Package cppcontainers version 1.0.0 Index]