std::ranges...r::iterator(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’… std::ranges...r::iterator(3) πŸ’…

okay so welcome to std::ranges...r::iterator(3), from the C++ Standard Libary manual β€” yes bestie, that's literally how it's spelled up top, and no I will not be fixing it πŸ’€βœ¨


✨ NAME ✨

std::ranges::chunk_by_view::iterator::iterator β€” that's the whole name, and it is iconic.

std::ranges::chunk_by_view::iterator::iterator β€” yes, it says it again. the original NAME section is just the same name twice. no cap, that's the vibe 🫢


πŸŽ€ Synopsis πŸŽ€

          /*iterator*/() = default;                              (1) (since
       C++23)
          private:

          constexpr /*iterator*/( chunk_by_view& parent,         (2)
       (exposition only*)
                                  ranges::iterator_t<V> current,

                                  ranges::iterator_t<V> next );

This bad boy constructs an iterator. πŸ”₯

  1. Default constructor. It value-initializes the underlying data-members like this:
    • parent_ with nullptr,
    • current_ with ranges::iterator_t<V>(),
    • next_ with ranges::iterator_t<V>().
  2. A private constructor which is used by chunk_by_view::begin and chunk_by_view::end. This constructor is not accessible to users. It initializes:
    • parent_ with std::addressof(parent),
    • current_ with current,
    • next_ with next.
lowkey important: constructor (1) is (since C++23), and constructor (2) is marked (exposition only*) β€” keep that detail, bestie πŸ’…

πŸ’œ Parameters πŸ’œ

  • parent β€” a parent object
  • current, next β€” iterators

🌸 Example 🌸

This section is incomplete.

Reason: no example.

😭 it's giving "left as an exercise", bestie. no example supplied, fr fr.


πŸ¦‹ Category πŸ¦‹

  • Todo no example β€” that's the category note, and it's matching the Example section's no-example energy πŸŽ€

mwah πŸ’– this page came from http://cppreference.com, dated 2024.06.10, and it's the std::ranges...r::iterator(3) manual. bye bestie, go slay some iterators 🫢✨

πŸ“¦ where this page comes from