std::ranges...view::begin(3)
πΈ NAME πΈ
std::ranges::transform_view::begin β std::ranges::transform_view::begin
Hey bestie π welcome to the std::ranges...view::begin(3) page from the C++ Standard Libary manual (yes, that spelling is iconic and we're keeping it π). This is all about std::ranges::transform_view::begin β the little member that hands you an iterator to the first element of a transform_view, no cap.
β¨ Synopsis β¨
constexpr /*iterator*/<false> begin();
(1) (since C++20)
constexpr /*iterator*/<true> begin() const
requires ranges::range<const V> &&
(2) (since C++20)
std::regular_invocable<const F&,
ranges::range_reference_t<const V>>;
Both overloads are (since C++20) π. And yeah, overload 2 has that whole requires clause vibe going on β it's right there in the block above, bestie π
.
It returns an iterator to the first element of the transform_view β¨.
- Equivalent to
return /*iterator*/<false>{*this, ranges::begin(base_)};, wherebase_is the underlying view. - Equivalent to
return /*iterator*/<true>{*this, ranges::begin(base_)};, wherebase_is the underlying view.
π¬ Parameters π¬
(none) β literally nothing to pass here, bestie π«Ά.
π¦ Return value π¦
Iterator to the first element. That's it. That's the whole serve π .
π Example π
This section is incomplete Reason: no example
Not me wishing there was an example π β but fr fr, the page says it's incomplete and gives the reason as 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
That's the whole vibe check, bestie π«Ά β source/version/date energy: http://cppreference.com Β· 2024.06.10 Β· std::ranges...view::begin(3) πβ¨
π¦ 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