Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::lazy_split_view<V,Pattern>::begin

      From cppreference.com
      <cpp‎ |ranges‎ |lazy split view
       
       
      Ranges library
      Range adaptors
       
       
      constexprauto begin();
      (1)(since C++20)
      constexprauto begin()const
          requiresranges::forward_range<V>&&ranges::forward_range<const V>;
      (2)(since C++20)

      Returns anouter_iterator to the first element of thelazy_split_view.

      Letbase_ be the underlying view andcurrent_ be the underlying caching object (may not be present).

      1) Equivalent to
      constexprauto begin(){ifconstexpr(ranges::forward_range<V>)return/*outer_iterator*/</*simple_view*/<V>>{*this,ranges::begin(base_)};else{        current_=ranges::begin(base_);return/*outer_iterator*/<false>{*this};}}
      2) Equivalent toreturn/*outer_iterator*/<true>{*this,ranges::begin(base_)};.

      [edit]Return value

      outer_iterator to the first element.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      returns an iterator or a sentinel to the end
      (public member function)[edit]
      returns an iterator to the beginning of a range
      (customization point object)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/lazy_split_view/begin&oldid=179918"

      [8]ページ先頭

      ©2009-2025 Movatter.jp