[#absl-c_distance]
= xref:absl.adoc[absl]::c&lowbar;distance
:relfileprefix: ../
:mrdocs:

Container&hyphen;based version of the &lt;iterator&gt; `std&colon;&colon;distance()` function to return the number of elements within a container&period;

== Synopsis

Declared in `&lt;absl&sol;algorithm&sol;container&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename C&gt;
constexpr
&sol;&ast; implementation-defined &ast;&sol;
c&lowbar;distance(C const& c);
----

== Return Value

The number of elements in `c`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *c*
| The container whose elements to count&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
