std::ranges::join_view<V>::iterator

< cpp‎ | ranges‎ | join view
template< bool Const >
class /*iterator*/
(since C++20)

The return type of join_view::begin, and of join_view::end when the underlying view is a common_range.

The type /*iterator*/<true> is returned by the const-qualified overloads. The type /*iterator*/<false> is returned by the non-const-qualified overloads.

The name of this class template (shown here as /*iterator*/) is unspecified.

Member types

Member type Definition
Parent (private) const join_view<V> if Const is true, otherwise join_view<V>. The name is for exposition only.
Base (private) const V if Const is true, otherwise V. The name is for exposition only.
OuterIter (private) ranges::iterator_t<Base>. The name is for exposition only.
InnerIter (private) ranges::iterator_t<ranges::range_reference_t<Base>>. The name is for exposition only.
iterator_concept
iterator_category Defined only if iterator::iterator_concept (see above) denotes std::forward_iterator_tag.

Let OUTERC be std::iterator_traits<ranges::iterator_t<Base>>::iterator_category, and let INNERC be std::iterator_traits<ranges::iterator_t<ranges::range_reference_t<Base>>>::iterator_category.

value_type ranges::range_value_t<ranges::range_reference_t<Base>>
difference_type

std::common_type_t<ranges::range_difference_t<Base>,
                   ranges::range_difference_t<ranges::range_reference_t<Base>>>

Member objects

Member name Definition
outer_ (private) an object of type OuterIter. The name is for exposition only.
inner_ (private) an object of type InnerIter. The name is for exposition only.
parent_ (private) an object of type Parent. The name is for exposition only.

Member functions

(C++20)
constructs an iterator
(public member function)
accesses the element
(public member function)
advances or decrements the underlying iterators
(public member function)
(C++20)
skips over empty inner ranges; the name is for exposition only
(exposition-only member function)

Non-member functions

(C++20)
compares the underlying iterators
(function)
(C++20)
casts the result of dereferencing the underlying iterator to its associated rvalue reference type
(function)
(C++20)
swaps the objects pointed to by two underlying iterators
(function)