Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

      From cppreference.com
      <cpp‎ |ranges‎ |join view‎ |iterator
       
       
      Ranges library
      Range adaptors
       
       
      /*iterator*/() requiresstd::default_initializable<OuterIter>&&
                             std::default_initializable<InnerIter>=default;
      (1)(since C++20)
      constexpr/*iterator*/( Parent& parent, OuterIter outer);
      (2)(since C++20)
      constexpr/*iterator*/(/*iterator*/<!Const> i)

          requires Const&&
                   std::convertible_to<ranges::iterator_t<V>, OuterIter>&&

                   std::convertible_to<ranges::iterator_t<InnerRng>, InnerIter>;
      (3)(since C++20)

      Constructs an iterator.

      1) Default constructor.Value-initializes the underlying iterators, and initializes the pointer to parentranges::join_view withnullptr.
      2) Initializes the underlyingouter_ iterator withstd::move(outer), and the pointer to parentparent_ withstd::addressof(parent); then callssatisfy().
      3) Converts/*iterator*/<false> to/*iterator*/<true>. Move constructs the underlying iteratorsouter_ withstd::move(i.outer_),inner_ withstd::move(i.inner_), and underlying pointer to parentparent_ withi.parent_.

      [edit]Parameters

      parent - a (possibly const-qualified)ranges::join_view
      outer - an iterator into (possibly const-qualified)ranges::iterator_t<Base>
      i - an/*iterator*/<false>

      [edit]Example

      This section is incomplete
      Reason: no example
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/join_view/iterator/iterator&oldid=175906"

      [8]ページ先頭

      ©2009-2025 Movatter.jp