[#absl-c_find_first_of-027] = xref:absl.adoc[absl]::c_find_first_of :relfileprefix: ../ :mrdocs: `c_find_first_of` overloads == Synopses Declared in `<absl/algorithm/container.h>` Container‐based version of the <algorithm> `std::find_first_of()` function to find the first element within the container that is also within the options container. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C1, typename C2> constexpr /* implementation-defined */ xref:absl/c_find_first_of-029.adoc[c_find_first_of]( C1& container, C2 const& options); ---- [.small]#xref:absl/c_find_first_of-029.adoc[_» more..._]# Overload of `c_find_first_of()` for using a predicate evaluation other than `==` as the function's test condition. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C1, typename C2, typename BinaryPredicate> constexpr /* implementation-defined */ xref:absl/c_find_first_of-04.adoc[c_find_first_of]( C1& container, C2 const& options, BinaryPredicate&& pred); ---- [.small]#xref:absl/c_find_first_of-04.adoc[_» more..._]# == Return Value * An iterator to the first element of `container` also found in `options`, or the end iterator if none is found. * An iterator to the first element of `container` matching an element of `options`, or the end iterator if none is found. == Parameters [cols="1,4"] |=== | Name| Description | *container* | The container to search. | *options* | The container of values to search for. | *pred* | The binary predicate used to compare elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#