std::ranges..._view::begin(3)
π std::ranges..._view::begin(3) π
okay bestie, this is the std::ranges::lazy_split_view::begin(3) page from the C++ Standard Libary manual β yes, βLibaryβ is literally how itβs written in the manual name, no cap, and weβre keeping it exactly like that π
.
β¨ NAME β¨
std::ranges::lazy_split_view::begin β std::ranges::lazy_split_view::begin (the name is the whole vibe, icon behavior π).
π¦ Synopsis π¦
Two overloads, both marked (since C++20):
constexpr auto begin();
(1) (since C++20)
constexpr auto begin() const
requires ranges::forward_range<V> && ranges::forward_range<const V>;
(2) (since C++20)
It returns an outer_iterator to the first element of the lazy_split_view β¨.
Let base_ be the underlying view.
- Equivalent to:
constexpr auto begin() {
if constexpr (ranges::forward_range<V>)
return /*outer_iterator*/</*simple_view*/<V>>{*this, ranges::begin(base_)};
else {
current_ = ranges::begin(base_);
return /*outer_iterator*/<false>{*this};
}
}
- Equivalent to
return /*outer_iterator*/<true>{*this, ranges::begin(base_)};.
π Parameters π
(none)β literally none, bestie. No args, no stress π«Ά.
πΈ Return value πΈ
outer_iteratorto the first element.
π Example π
- This section is incomplete
- Reason: no example
π See also π
endβ returns an iterator or a sentinel to the end (C++20) (public member function)ranges::beginβ returns an iterator to the beginning of a range (C++20) (customization point object)
π Category π
* Todo no example
π«Ά source:http://cppreference.comΒ· version/date:2024.06.10Β· page:std::ranges..._view::begin(3)β mwah, go slay those ranges π β¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms