remove. {cppcontainers}R Documentation

Remove elements

Description

Remove elements from a container by reference.

Usage

remove.(x, value)

Arguments

x

A CppForwardList or CppList object.

value

A value to delete from x.

Details

The method ends with a dot to avoid compatibility issues with the generic base::remove.

Value

Invisibly returns NULL.

See Also

clear, empty, erase.

Examples

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

remove.(l, 5L)
l
# 4 6


[Package cppcontainers version 1.0.0 Index]