[#absl-c_copy_if] = xref:absl.adoc[absl]::c_copy_if :relfileprefix: ../ :mrdocs: Container‐based version of the <algorithm> `std::copy_if()` function to copy a container's elements satisfying some condition into an iterator. == Synopsis Declared in `<absl/algorithm/container.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename InputSequence, typename OutputIterator, typename Pred> constexpr OutputIterator c_copy_if( InputSequence const& input, OutputIterator output, Pred&& pred); ---- == Return Value An iterator to the end of the copied range in the output. == Parameters [cols="1,4"] |=== | Name| Description | *input* | The container whose elements to copy. | *output* | The output iterator receiving the copied elements. | *pred* | The predicate selecting which elements to copy. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#