std::ranges...r::iterator(3)
Hey bestie! π Welcome to std::ranges...r::iterator(3), straight from the C++ Standard Libary β yes, that spelling is literally on the page, no cap. This manual is all about std::ranges::elements_view::iterator::iterator, and we're gonna construct it together. Let's go! β¨
πΈ NAME πΈ
std::ranges::elements_view::iterator::iterator β and also std::ranges::elements_view::iterator::iterator. She said it twice, and honestly? Iconic repetition. π
β¨ Synopsis β¨
Okay so here's the constructor menu, bestie. Three overloads, all (since C++20), and the page labels them (1), (2), and (3). π«Ά
/*iterator*/() requires
std::default_initializable<ranges::iterator_t<Base>>
= default;
(1) (since C++20)
constexpr explicit /*iterator*/( ranges::iterator_t<Base> current );
(2) (since C++20)
constexpr /*iterator*/( /*iterator*/<!Const> i ) requires Const &&
std::convertible_to<ranges::iterator_t<V>,
ranges::iterator_t<Base>>;
(3) (since C++20)
Construct an iterator. That's the whole vibe. π
- Value-initializes the underlying iterator
current_via its default member initializer (= ranges::iterator_t<Base>()). Cute default-initialization moment, fr fr. - Initializes the underlying iterator
current_withstd::move(current). Moving, slaying, periodt. - Conversion from
/*iterator*/<false>to/*iterator*/<true>. Initializes the underlying iteratorcurrent_withstd::move(i.current). Glow-up conversion energy. π
π Parameters π
currentβ an iterator into (possibly const-qualified)V.iβ an/*iterator*/<false>.
π Example π
This section is incomplete Reason: no example
π¦ Category: π¦
- Todo no example
That's the tea, bestie! Source/version/date sign-off: http://cppreference.com, 2024.06.10, and std::ranges...r::iterator(3). Every detail made it in, and we ate. ππ
π¦ 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