[#absl-c_distance] = xref:absl.adoc[absl]::c_distance :relfileprefix: ../ :mrdocs: Container‐based version of the <iterator> `std::distance()` function to return the number of elements within a container. == Synopsis Declared in `<absl/algorithm/container.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename C> constexpr /* implementation-defined */ c_distance(C const& c); ---- == Return Value The number of elements in `c`. == Parameters [cols="1,4"] |=== | Name| Description | *c* | The container whose elements to count. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#