Container-based version of the <iterator> std::distance() function to return the number of elements within a container.
Declared in <absl/algorithm/container.h>
template<typename C>
constexpr
/* implementation-defined */
c_distance(C const& c);
The number of elements in c.
| Name | Description |
|---|---|
| c | The container whose elements to count. |