std::ranges::view_interface<D>::cbegin
From cppreference.com
< cpp | ranges | view interface
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Ranges library
(C++23)(C++23)
(C++26)(C++26)
(C++23)(C++23)
(C++26)(C++26)
(C++26)(C++26)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)
(C++23)(C++23)
(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
constexpr auto cbegin();
(1)
(since C++23)
constexpr auto cbegin() const requires ranges::range <const D>;
(2)
(since C++23)
The default implementation of cbegin()
member function returns a constant beginning iterator of the range.
1) Let derived be a reference bound to static_cast<D&>(*this).
Equivalent to return ranges::cbegin (derived);.
2) Same as (1), except that derived is static_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 and std::ranges::subrange use the default implementation of cbegin
.
[edit] Example
This section is incomplete
Reason: no example
Reason: no example
[edit] See also
(C++11)(C++14)
(function template) [edit]