[#absl-c_contains] = xref:absl.adoc[absl]::c_contains :relfileprefix: ../ :mrdocs: Container‐based version of the <algorithm> `std::ranges::contains()` C++23 function to search a container for a value. == Synopsis Declared in `<absl/algorithm/container.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Sequence, typename T> constexpr bool c_contains( Sequence const& sequence, T&& value); ---- == Return Value `true` if `value` is found within `sequence`, otherwise `false`. == Parameters [cols="1,4"] |=== | Name| Description | *sequence* | The container to search. | *value* | The value to search for. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#