Container-based version of the <algorithm> std::is_sorted() function to evaluate whether the given container is sorted in ascending order.
Declared in <absl/algorithm/container.h>
template<typename C>
constexpr
bool
c_is_sorted(C const& c);
true if c is sorted in ascending order, otherwise false.
| Name | Description |
|---|---|
| c | The container to test. |