table of contents
other versions
- Tumbleweed 2026.11.13-1.1
- Leap-16.0
| std::ranges::subrange::begin(3) | C++ Standard Libary | std::ranges::subrange::begin(3) |
NAME¶
std::ranges::subrange::begin - std::ranges::subrange::begin
Synopsis¶
constexpr I begin() const requires std::copyable<I>; (1) (since C++20) constexpr I begin() requires (!std::copyable<I>); (2) (since C++20)
Obtains the iterator to the beginning of the subrange.
range-begin-end.svg
Return value¶
1) begin_. 2) std::move(begin_ ).
Example¶
This section is incomplete
Reason: no example
See also¶
end obtains the sentinel
(public member function) begin cbegin returns an iterator to the
beginning of a container or array (C++11) (function template)
(C++14) ranges::begin returns an iterator to the beginning of a range
(C++20) (customization point object)
| 2026.11.10 | http://cppreference.com |