[#absl-c_contains_subrange-0ea] = xref:absl.adoc[absl]::c_contains_subrange :relfileprefix: ../ :mrdocs: Overload of `c_contains_subrange()` for using a predicate evaluation other than `==` as the function's test condition. == Synopsis Declared in `<absl/algorithm/container.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Sequence1, typename Sequence2, typename BinaryPredicate> constexpr bool c_contains_subrange( Sequence1& sequence, Sequence2& subsequence, BinaryPredicate&& pred); ---- == Return Value `true` if `subsequence` is found within `sequence` under `pred`, otherwise `false`. == Parameters [cols="1,4"] |=== | Name| Description | *sequence* | The container to search. | *subsequence* | The subsequence to search for. | *pred* | The binary predicate used to compare elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#