absl::c_remove_copy_if

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

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename C,
    typename OutputIterator,
    typename Pred>
constexpr
OutputIterator
c_remove_copy_if(
    C const& c,
    OutputIterator result,
    Pred&& pred);

Return Value

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

Parameters

NameDescription
cThe container whose elements to copy.
resultThe output iterator receiving the copied elements.
predThe predicate selecting which elements to omit.