Container-based version of the <algorithm> std::ranges::contains() C++23 function to search a container for a value.
Declared in <absl/algorithm/container.h>
template<
typename Sequence,
typename T>
constexpr
bool
c_contains(
Sequence const& sequence,
T&& value);
true if value is found within sequence, otherwise false.
| Name | Description |
|---|---|
| sequence | The container to search. |
| value | The value to search for. |