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
diff --git a/absl/algorithm/container.h b/absl/algorithm/container.h index 73929be..3193656 100644 --- a/absl/algorithm/container.h +++ b/absl/algorithm/container.h
@@ -131,6 +131,8 @@ // // 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) {