muu/iterators.h file

Utilities for working with iterators.

Namespaces

namespace muu
The root namespace for all muu functions and types.

Functions

template <typename T>
auto begin_iterator(T&& iterable) -> auto constexpr noexcept
Returns the 'begin' iterator of an iterable object.
template <typename T>
auto end_iterator(T&& iterable) -> auto constexpr noexcept
Returns the 'end' iterator of an iterable object.
template <typename B, typename E>
auto iterator_distance(B begin, E end) -> auto constexpr noexcept
Returns the distance between two iterators.