std::ranges...::operator++(3)
okay bestie, this is the std::ranges...::operator++(3) page from the C++ Standard Libary manual (their spelling, not mine π
), and we're about to make std::ranges::chunk_view::inner-iterator::operator++ make sense. Group-chat mode: on π«Άβ¨
πΈ NAME πΈ
std::ranges::chunk_view::inner-iterator::operator++ - std::ranges::chunk_view::inner-iterator::operator++
That's the whole NAME, bestie β yes, it's giving "said it twice because it's iconic" π β¨
β¨ Synopsis β¨
constexpr /*inner-iterator*/& operator++(); (1) (since C++23)
constexpr void operator++( int ); (2) (since C++23)
Increments the iterator. Simple queen behavior π₯
Let parent_ be the underlying pointer to enclosing chunk_view.
1) Equivalent to:
++*parent_->current_;
if (*parent_->current_ == ranges::end(parent_->base_))
parent_->remainder_ = 0;
else
--parent_->remainder_;
return *this;
Before invocation of this operator the expression *this == std::default_sentinel must be false. Like, must be false, no cap π
2) Equivalent to ++*this.
π Parameters π
(none) β literally zero parameters, we love a low-maintenance icon π«Ά
π Return value π
*this- (none)
Overload (1) hands you back *this; overload (2) returns (none), periodt π
π¦ Example π¦
This section is incomplete Reason: no example
Tragic, I know β the example section is incomplete and the reason is literally no example π
π See also π
operator-β calculates the number of chunks remained(C++23)(function)
π Category π
* Todo no example
mwah π this footer came straight from http://cppreference.com, stamped with version/date 2024.06.10, and it's the std::ranges...::operator++(3) page β slay, bye bestie π«Άπ
π¦ 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