4#ifndef TETL_ITERATOR_DISTANCE_HPP
5#define TETL_ITERATOR_DISTANCE_HPP
7#include <etl/_iterator/iterator_traits.hpp>
8#include <etl/_iterator/tags.hpp>
9#include <etl/_type_traits/is_base_of.hpp>
26 while (first != last) {
constexpr auto distance(It first, It last) -> typename iterator_traits< It >::difference_type
Returns the number of hops from first to last.
Definition distance.hpp:17
Definition adjacent_find.hpp:9
iterator_traits is the type trait class that provides uniform interface to the properties of LegacyIt...
Definition iterator_traits.hpp:48
Defines the category of an iterator. Each tag is an empty type and corresponds to one of the five (un...
Definition tags.hpp:37