[#absl-c_unique_copy-0f] = xref:absl.adoc[absl]::c_unique_copy :relfileprefix: ../ :mrdocs: `c_unique_copy` overloads == Synopses Declared in `<absl/algorithm/container.h>` Container‐based version of the <algorithm> `std::unique_copy()` function to copy a container's elements while removing any elements containing duplicate values. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C, typename OutputIterator> constexpr OutputIterator xref:absl/c_unique_copy-076.adoc[c_unique_copy]( C const& c, OutputIterator result); ---- [.small]#xref:absl/c_unique_copy-076.adoc[_» more..._]# Overload of `c_unique_copy()` for using a predicate evaluation other than `==` for comparing uniqueness of the element values. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C, typename OutputIterator, typename BinaryPredicate> constexpr OutputIterator xref:absl/c_unique_copy-07d.adoc[c_unique_copy]( C const& c, OutputIterator result, BinaryPredicate&& pred); ---- [.small]#xref:absl/c_unique_copy-07d.adoc[_» more..._]# == Return Value An iterator to the end of the copied range in the output. == Parameters [cols="1,4"] |=== | Name| Description | *c* | The container whose elements to copy. | *result* | The output iterator receiving the copied elements. | *pred* | The binary predicate used to compare adjacent elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#