Range-v3
Range algorithms, views, and actions for the Standard Library
Iterator

Description

Iterator functionality.

Modules

 Iterator Concepts
 Iterator concepts.
 

Classes

struct  ranges::advance_fn
 
struct  ranges::back_insert_iterator< Container >
 
struct  ranges::back_inserter_fn
 
struct  ranges::basic_iterator< Cur >
 
struct  ranges::basic_mixin< T >
 
struct  ranges::common_iterator< I, S >
 
struct  ranges::contiguous_iterator_tag
 
struct  ranges::default_sentinel_t
 
struct  ranges::distance_compare_fn
 
struct  ranges::distance_fn
 
struct  ranges::enumerate_fn
 
struct  ranges::front_insert_iterator< Container >
 
struct  ranges::front_inserter_fn
 
struct  ranges::get_cursor_fn
 Get a cursor from a basic_iterator. More...
 
struct  ranges::incrementable_traits< T >
 
struct  ranges::incrementable_traits< T const >
 
struct  ranges::insert_iterator< Container >
 
struct  ranges::inserter_fn
 
struct  ranges::is_indirectly_movable< I, O >
 
struct  ranges::is_indirectly_swappable< T, U >
 
struct  ranges::is_nothrow_indirectly_movable< I, O >
 
struct  ranges::is_nothrow_indirectly_swappable< T, U >
 
struct  ranges::iter_distance_compare_fn
 
struct  ranges::iter_distance_fn
 
struct  ranges::iter_enumerate_fn
 
struct  ranges::iter_size_fn
 
struct  ranges::make_move_iterator_fn
 
struct  ranges::make_move_sentinel_fn
 
struct  ranges::make_ostream_joiner_fn
 
struct  ranges::make_reverse_iterator_fn
 
struct  ranges::move_into_fn
 
struct  ranges::move_iterator< I >
 
struct  ranges::move_sentinel< S >
 
struct  ranges::next_fn
 
struct  ranges::ostream_iterator< T, Char, Traits >
 
struct  ranges::ostream_joiner< Delim, Char, Traits >
 
struct  ranges::ostreambuf_iterator< Char, Traits >
 
struct  ranges::prev_fn
 
struct  ranges::readable_traits< T >
 
struct  ranges::readable_traits< common_iterator< I, S > >
 
struct  ranges::readable_traits< T const >
 
struct  ranges::unreachable_sentinel_t
 

Typedefs

template<typename I >
using ranges::iter_common_reference_t = common_reference_t< iter_reference_t< I >, iter_value_t< I > & >
 
template<typename T >
using ranges::iter_difference_t = typename incrementable_traits< uncvref_t< T > >::difference_type
 
template<typename R >
using ranges::iter_reference_t = detail::iter_reference_t_< R >
 
template<typename I >
using ranges::iter_rvalue_reference_t = detail::iter_rvalue_reference_t< I >
 
template<typename R >
using ranges::iter_value_t = detail::iter_value_t_< uncvref_t< R > >
 

Functions

template<typename I1 , typename I2 , typename S1 , typename S2 >
auto ranges::operator!= (common_iterator< I1, S1 > const &x, common_iterator< I2, S2 > const &y) -> bool requires sentinel_for< S1, I2 > &&sentinel_for< S2, I1 >
 
template<typename Cur , typename Cur2 >
constexpr auto ranges::operator!= (basic_iterator< Cur > const &left, basic_iterator< Cur2 > const &right) -> bool requires detail::sentinel_for_cursor< Cur2, Cur >
 
template<typename Cur , typename S >
constexpr auto ranges::operator!= (basic_iterator< Cur > const &left, S const &right) -> bool requires detail::sentinel_for_cursor< S, Cur >
 
template<typename S , typename Cur >
constexpr auto ranges::operator!= (S const &left, basic_iterator< Cur > const &right) -> bool requires detail::sentinel_for_cursor< S, Cur >
 
template<typename Cur >
constexpr auto ranges::operator+ (basic_iterator< Cur > left, typename basic_iterator< Cur >::difference_type n) -> basic_iterator< Cur > requires detail::random_access_cursor< Cur >
 
template<typename Cur >
constexpr auto ranges::operator+ (typename basic_iterator< Cur >::difference_type n, basic_iterator< Cur > right) -> basic_iterator< Cur > requires detail::random_access_cursor< Cur >
 
template<typename I1 , typename I2 , typename S1 , typename S2 >
auto ranges::operator- (common_iterator< I1, S1 > const &x, common_iterator< I2, S2 > const &y) -> iter_difference_t< I2 > requires sized_sentinel_for< I1, I2 > &&sized_sentinel_for< S1, I2 > &&sized_sentinel_for< S2, I1 >
 
template<typename Cur >
constexpr auto ranges::operator- (basic_iterator< Cur > left, typename basic_iterator< Cur >::difference_type n) -> basic_iterator< Cur > requires detail::random_access_cursor< Cur >
 
template<typename Cur2 , typename Cur >
constexpr auto ranges::operator- (basic_iterator< Cur2 > const &left, basic_iterator< Cur > const &right) -> typename basic_iterator< Cur >::difference_type requires detail::sized_sentinel_for_cursor< Cur2, Cur >
 
template<typename S , typename Cur >
constexpr auto ranges::operator- (S const &left, basic_iterator< Cur > const &right) -> typename basic_iterator< Cur >::difference_type requires detail::sized_sentinel_for_cursor< S, Cur >
 
template<typename Cur , typename S >
constexpr auto ranges::operator- (basic_iterator< Cur > const &left, S const &right) -> typename basic_iterator< Cur >::difference_type requires detail::sized_sentinel_for_cursor< S, Cur >
 
template<typename Left , typename Right >
constexpr auto ranges::operator< (basic_iterator< Left > const &left, basic_iterator< Right > const &right) -> bool requires detail::sized_sentinel_for_cursor< Right, Left >
 
template<typename Left , typename Right >
constexpr auto ranges::operator<= (basic_iterator< Left > const &left, basic_iterator< Right > const &right) -> bool requires detail::sized_sentinel_for_cursor< Right, Left >
 
template<typename I1 , typename I2 , typename S1 , typename S2 >
auto ranges::operator== (common_iterator< I1, S1 > const &x, common_iterator< I2, S2 > const &y) -> bool requires sentinel_for< S1, I2 > &&sentinel_for< S2, I1 > &&(!equality_comparable_with< I1, I2 >)
 
template<typename Cur , typename Cur2 >
constexpr auto ranges::operator== (basic_iterator< Cur > const &left, basic_iterator< Cur2 > const &right) -> bool requires detail::sentinel_for_cursor< Cur2, Cur >
 
template<typename Cur , typename S >
constexpr auto ranges::operator== (basic_iterator< Cur > const &left, S const &right) -> bool requires detail::sentinel_for_cursor< S, Cur >
 
template<typename S , typename Cur >
constexpr auto ranges::operator== (S const &left, basic_iterator< Cur > const &right) -> bool requires detail::sentinel_for_cursor< S, Cur >
 
template<typename Left , typename Right >
constexpr auto ranges::operator> (basic_iterator< Left > const &left, basic_iterator< Right > const &right) -> bool requires detail::sized_sentinel_for_cursor< Right, Left >
 
template<typename Left , typename Right >
constexpr auto ranges::operator>= (basic_iterator< Left > const &left, basic_iterator< Right > const &right) -> bool requires detail::sized_sentinel_for_cursor< Right, Left >
 

Variables

constexpr advance_fn ranges::advance {}
 
constexpr back_inserter_fn ranges::back_inserter {}
 
constexpr default_sentinel_t ranges::default_sentinel {}
 
constexpr distance_fn ranges::distance {}
 
constexpr distance_compare_fn ranges::distance_compare {}
 
constexpr enumerate_fn ranges::enumerate {}
 
constexpr front_inserter_fn ranges::front_inserter {}
 
constexpr get_cursor_fn ranges::get_cursor {}
 
constexpr inserter_fn ranges::inserter {}
 
template<typename I , typename O >
constexpr bool ranges::is_indirectly_movable_v
 
template<typename T , typename U >
constexpr bool ranges::is_indirectly_swappable_v
 
template<typename I , typename O >
constexpr bool ranges::is_nothrow_indirectly_movable_v
 
template<typename T , typename U >
constexpr bool ranges::is_nothrow_indirectly_swappable_v
 
constexpr iter_distance_fn ranges::iter_distance {}
 
constexpr iter_distance_compare_fn ranges::iter_distance_compare {}
 
constexpr iter_enumerate_fn ranges::iter_enumerate {}
 
constexpr _iter_move_::fn ranges::iter_move {}
 
constexpr iter_size_fn ranges::iter_size {}
 
constexpr _iter_swap_::fn iter_swap {}
 
constexpr make_move_iterator_fn ranges::make_move_iterator {}
 
constexpr make_move_sentinel_fn ranges::make_move_sentinel {}
 
constexpr make_ostream_joiner_fn ranges::make_ostream_joiner {}
 
constexpr make_reverse_iterator_fn ranges::make_reverse_iterator {}
 
constexpr move_into_fn ranges::move_into {}
 
constexpr next_fn ranges::next {}
 
constexpr prev_fn ranges::prev {}
 
constexpr adl_uncounted_recounted_detail::recounted_fn ranges::recounted {}
 
constexpr adl_uncounted_recounted_detail::uncounted_fn ranges::uncounted {}
 
constexpr unreachable_sentinel_t ranges::unreachable {}
 

Variable Documentation

◆ advance

constexpr advance_fn ranges::advance {}

◆ back_inserter

constexpr back_inserter_fn ranges::back_inserter {}

◆ distance

constexpr distance_fn ranges::distance {}

◆ distance_compare

constexpr distance_compare_fn ranges::distance_compare {}

◆ enumerate

constexpr enumerate_fn ranges::enumerate {}
related

◆ front_inserter

constexpr front_inserter_fn ranges::front_inserter {}

◆ get_cursor

constexpr get_cursor_fn ranges::get_cursor {}

◆ inserter

constexpr inserter_fn ranges::inserter {}

◆ is_indirectly_movable_v

template<typename I , typename O >
constexpr bool ranges::is_indirectly_movable_v

#include <range/v3/iterator/access.hpp>

Initial value:
=
decltype(detail::is_indirectly_movable_<I, O>(nullptr, nullptr))::value

◆ is_indirectly_swappable_v

template<typename T , typename U >
constexpr bool ranges::is_indirectly_swappable_v

#include <range/v3/iterator/access.hpp>

Initial value:
=
decltype(detail::is_indirectly_swappable_<T, U>(nullptr, nullptr))::value

◆ is_nothrow_indirectly_movable_v

template<typename I , typename O >
constexpr bool ranges::is_nothrow_indirectly_movable_v

#include <range/v3/iterator/access.hpp>

Initial value:
=
decltype(detail::is_nothrow_indirectly_movable_<I, O>(nullptr))::value

◆ is_nothrow_indirectly_swappable_v

template<typename T , typename U >
constexpr bool ranges::is_nothrow_indirectly_swappable_v

#include <range/v3/iterator/access.hpp>

Initial value:
=
decltype(detail::is_nothrow_indirectly_swappable_<T, U>(0))::value

◆ iter_distance

constexpr iter_distance_fn ranges::iter_distance {}

◆ iter_distance_compare

constexpr iter_distance_compare_fn ranges::iter_distance_compare {}

◆ iter_enumerate

constexpr iter_enumerate_fn ranges::iter_enumerate {}

◆ iter_size

constexpr iter_size_fn ranges::iter_size {}

◆ iter_swap

constexpr _iter_swap_::fn iter_swap {}

#include <range/v3/iterator/access.hpp>

>iter_swap::fn

◆ make_ostream_joiner

constexpr make_ostream_joiner_fn ranges::make_ostream_joiner {}

◆ move_into

constexpr move_into_fn ranges::move_into {}

◆ next

constexpr next_fn ranges::next {}

◆ prev

constexpr prev_fn ranges::prev {}