Container‐based version of the <algorithm> std::remove_copy() function to copy a container's elements while removing any elements matching the given value.

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename C,
    typename OutputIterator,
    typename T>
constexpr
OutputIterator
c_remove_copy(
    C const& c,
    OutputIterator result,
    T const& value);

Return Value

An iterator to the end of the copied range in the output.

Parameters

Name

Description

c

The container whose elements to copy.

result

The output iterator receiving the copied elements.

value

The value whose matching elements are omitted.

Created with MrDocs