std::ranges...or::iterator(3)
π NAME π
okay bestie, this page is about std::ranges::enumerate_view::iterator::iterator β and the NAME line literally says std::ranges::enumerate_view::iterator::iterator twice, which is giving "I have main character energy and also a long name" π
. The header abbreviates it as std::ranges...or::iterator(3), and this is from the C++ Standard Libary manual, section 3. Lock in. β¨
β¨ Synopsis β¨
here's the synopsis, no cap:
/*iterator*/()
requires std::default_initializable<ranges::iterator_t<Base>> (1)
(since C++23)
= default;
constexpr /*iterator*/( /*iterator*/<!Const> i )
requires Const &&
std::convertible_to<ranges::iterator_t<V>,
ranges::iterator_t<Base>>; (2)
(since C++23)
private:
constexpr explicit /*iterator*/( ranges::iterator_t<Base> current,
difference_type pos); (3)
(exposition only*)
Construct an iterator. π«Ά
πΈ Parameters πΈ
iβ an/*iterator*/<false>. that's the whole parameter list, bestie. π
π¦ Constructors / Description π¦
- Default constructor. Value-initializes the underlying iterator
current_withranges::iterator_t<Base>()and the underlying indexpos_with0. cute, clean, zeroed out. β¨ - Conversion from
/*iterator*/<false>to/*iterator*/<true>. Initializescurrent_withstd::move(i.current_)andpos_withi.pos_. yes, it's moving things, we love a transfer of energy. π« - A private constructor which is used by
enumerate_view::beginandenumerate_view::end. This constructor is not accessible to users β hands off, bestie. π It initializescurrent_withstd::move(current)andpos_withpos.
π Example π
This section is incomplete Reason: no example
π Category π
* Todo no example
cute little sign-off: source is http://cppreference.com, version/date is 2024.06.10. bye bestie, go construct some iterators responsibly πβ¨
π¦ 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