◐ Shell
clean mode source ↗

std::ranges::concat_view<Views...>::iterator<Const>::iterator - cppreference.com

From cppreference.com

/*iterator*/() = default;
(1) (since C++26)
constexpr /*iterator*/( /*iterator*/<!Const> it )
    requires Const &&
             (std::convertible_to<ranges::iterator_t<Views>,
                                  ranges::iterator_t<const Views>> && ...);
(2) (since C++26)
template< class... Args >
constexpr explicit /*iterator*/
    ( /*maybe-const*/<Const, concat_view>* parent, Args&&... args )
    requires std::constructible_from</*base-iter*/, Args&&...>;
(3) (since C++26)
(exposition only*)

Constructs an iterator.

For the definition of /*maybe-const*/, see maybe-const .

1) Default constructor. Initializes parent_ with nullptr, and default-initializes it_.

2) Converting constructor. Initializes parent_ with it.parent_, and initializes it_ with an rvalue denoting the value held by it.it_.

  • If it.it_ .valueless_by_exception() is true, the behavior is undefined.

3) Initializes parent_ with parent, and initializes it_ with std::forward<Args>(args)....

Parameters

it - a mutable iterator
parent - a pointer to ranges::concat_view
args - the arguments to initialize it_

Example