Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::view_interface<D>::cbegin

      From cppreference.com
      <cpp‎ |ranges‎ |view interface
       
       
      Ranges library
      Range adaptors
       
       
      constexprauto cbegin();
      (1)(since C++23)
      constexprauto cbegin()const requiresranges::range<const D>;
      (2)(since C++23)

      The default implementation ofcbegin() member function returns a constant beginning iterator of the range.

      range-begin-end.svg

      1) Letderived be a reference bound tostatic_cast<D&>(*this).
      Equivalent toreturnranges::cbegin(derived);.
      2) Same as(1), except thatderived isstatic_cast<const D&>(*this).

      Contents

      [edit]Return value

      A constant beginning iterator of the range.

      [edit]Notes

      All range adaptors and range factories in the standard library andstd::ranges::subrange use the default implementation ofcbegin.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      (C++11)(C++14)
      returns an iterator to the beginning of a container or array
      (function template)[edit]
      returns an iterator to the beginning of a read-only range
      (customization point object)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/view_interface/cbegin&oldid=182205"

      [8]ページ先頭

      ©2009-2025 Movatter.jp