std::experimental::ranges::distance

Header: <experimental/ranges/iterator>

Returns the distance between first and last, or between the beginning and the end of the range r.

# Declarations

namespace {
constexpr /* unspecified */ distance = /* unspecified */;
}

(ranges TS) (customization point object)

Call signature
template< Iterator I, Sentinel<I> S >
constexpr ranges::difference_type_t<I> distance( I first, S last );
template< Range R >
constexpr ranges::difference_type_t<ranges::iterator_t<R>> distance( R&& r );
template< SizedRange R >
constexpr ranges::difference_type_t<ranges::iterator_t<R>> distance( R&& r );

# Return value

The distance between first and last, or between the beginning and the end of the range r.

# Example

This section is incompleteReason: no example

# See also