template<typename TIterator>
slang::iterator_range class

A range represented by an interator pair, begin and end.

Contents

Public functions

auto size() const -> auto
auto operator[](typename std::iterator_traits<TIterator>::difference_type index) const -> auto

Function documentation

template<typename TIterator>
auto slang::iterator_range<TIterator>::size() const

Computes the number of elements in the range via std::distance. Not necessarily very efficient.

template<typename TIterator>
auto slang::iterator_range<TIterator>::operator[](typename std::iterator_traits<TIterator>::difference_type index) const

Retrieves the element at the specified offset in the range, via std::next. Not necessarily very efficient.