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

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

πŸ’– NAME πŸ’–

std::ranges::chunk_by_view::iterator β€” and yes bestie, the page says std::ranges::chunk_by_view::iterator again, because the manpage likes to repeat itself. We respect the ritual. ✨

Okay so real talk: this is the C++ Standard Library page (the header literally spells the manual name as C++ Standard Libary, and we are not fixing it β€” it’s giving typo chic), for std::ranges::chunk_by_view::iterator. The mangled header title is std::ranges...w::iterator(3), iykyk.


✨ Synopsis ✨

class /*iterator*/  (since C++23)
                    (exposition only*)

This is the return type of chunk_by_view::begin, and also of chunk_by_view::end when the underlying view V is a common_range. 🫢


πŸŽ€ Member types πŸŽ€

  • value_type β€” ranges::subrange<ranges::iterator_t<V>>
  • difference_type β€” ranges::range_difference_t<V>
  • iterator_category β€” std::input_iterator_tag
  • iterator_concept β€”
    • std::bidirectional_iterator_tag, if V models bidirectional_range, otherwise
    • std::forward_iterator_tag.

πŸ¦‹ Data members πŸ¦‹

  • parent_ (private) β€” A pointer to the parent chunk_by_view. (exposition-only member object*)
  • current_ (private) β€” ranges::iterator_t<V>, an iterator to the begin of current chunk. (exposition-only member object*)
  • next_ (private) β€” ranges::iterator_t<V>, an iterator to the begin of next chunk, if present. (exposition-only member object*)

πŸ’… Member functions πŸ’…

  • constructor (C++23) β€” constructs an iterator (public member function)
  • operator* (C++23) β€” accesses the element (public member function)
  • operator++, operator++(int), operator--, operator--(int) (C++23) β€” advances or decrements the underlying iterators (public member function)

🌈 Non-member functions 🌈

  • operator== (C++23) β€” compares the underlying iterators (function)

πŸ“ Example πŸ“

This section is incomplete Reason: no example

πŸ“š References πŸ“š

  • C++23 standard (ISO/IEC 14882:2023):
  • 26.7.30.3 Class chunk_by_view::iterator [range.chunk.by.iter]

πŸ‘‘ See also πŸ‘‘

Category:

  • Todo no example

Bye bestie πŸ’– this little page came from http://cppreference.com, dated 2024.06.10, and the footer tag is std::ranges...w::iterator(3). Slay. βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from