std::ranges...perator++,--(3)
π NAME π
okay so bestie, we're on the std::ranges::chunk_by_view::iterator::operator++,-- page from the C++ Standard Libary β¨ and the name situation is literally:
std::ranges::chunk_by_view::iterator::operator++,--βstd::ranges::chunk_by_view::iterator::operator++,--
no cap, that's the whole name vibe π
β¨ Synopsis β¨
here's the icon lineup, all since C++23 π
constexpr /*iterator*/& operator++();β (1) (since C++23)constexpr /*iterator*/ operator++(int);β (2) (since C++23)constexpr /*iterator*/& operator--() requires ranges::bidirectional_range<V>;β (3) (since C++23)constexpr /*iterator*/ operator--(int) requires ranges::bidirectional_range<V>;β (4) (since C++23)
on the page it's laid out like this, lowkey:
constexpr /*iterator*/& operator++();
(1) (since C++23)
constexpr /*iterator*/ operator++(int);
(2) (since C++23)
constexpr /*iterator*/& operator--() requires
ranges::bidirectional_range<V>;
(3) (since C++23)
constexpr /*iterator*/ operator--(int) requires
ranges::bidirectional_range<V>;
(4) (since C++23)
Increments or decrements the iterator. periodt π«
Let parent_, current_, and next_ be the appropriate underlying (exposition-only) data-members of iterator.
Let find-next and find-prev be appropriate (exposition-only) member functions of ranges::chunk_by_view.
operator++()(1) β Equivalent to:
current_ = next_;
next_ = parent_->/*find-next*/(current_);
return *this;
π¨ The behavior is undefined if before the call to this operator current_ is equal to next_. like bestie, that's the danger zone, do not go there π
operator++(int)(2) β Equivalent to:auto tmp = *this; ++*this; return tmp;operator--()(3) β Equivalent to:
next_ = current_;
current_ = parent_->/*find-prev*/(next_);
return *this;
operator--(int)(4) β Equivalent to:auto tmp = *this; --*this; return tmp;
π«Ά Parameters π«Ά
- (none) π¦
π Return value π
1,3)*this2,4)a copy of*thisthat was made before the change.
and that's the whole page, bestie π lil sign-off kiss: source/version is http://cppreference.com, date is 2024.06.10, and the page tag is std::ranges...perator++,--(3) πΈ mwah π«Ά
π¦ 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