Mention c_any_of in the function comment of absl::c_linear_search.

This should help readers who find `c_linear_search` but need the more general form and don't guess that it exists under this rather different name.

PiperOrigin-RevId: 698124511
Change-Id: I1dfd33707d3dfb2a98527f706b97c3327acc6e76
This commit is contained in:
Abseil Team
2024-11-19 13:23:51 -08:00
committed by Copybara-Service
parent 4a437e89f3
commit b67caffec1

View File

@@ -131,6 +131,8 @@ struct IsUnorderedContainer<std::unordered_set<Key, Hash, KeyEqual, Allocator>>
//
// Container-based version of absl::linear_search() for performing a linear
// search within a container.
//
// For a generalization that uses a predicate, see absl::c_any_of().
template <typename C, typename EqualityComparable>
ABSL_INTERNAL_CONSTEXPR_SINCE_CXX20 bool c_linear_search(
const C& c, EqualityComparable&& value) {