Namespaces
Variants
Actions

std::ranges::subrange<I,S,K>::begin

From cppreference.com
< cpp‎ | ranges‎ | subrange
 
C++
 
Ranges library
Range adaptors
 
std::ranges::subrange
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

[edit] Return value

1) begin_.
2) std::move(begin_ ).

[edit] Example

[edit] See also

obtains the sentinel
(public member function) [edit]
(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 range
(customization point object)[edit]

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant