std::ranges...::operator++(3)
π std::ranges::chunk_view::outer-iterator::operator++ β the iterator glow-up page
okay so bestie, this is the std::ranges...::operator++(3) page from the C++ Standard Libary manual, and itβs all about the outer iterator of chunk_view getting its increment on. Itβs C++23 coded, itβs giving βsmall operator, big responsibilities.β Letβs go. β¨
π NAME
std::ranges::chunk_view::outer-iterator::operator++ β yes, thatβs the name. And because the original says it twice, weβre keeping it twice, no cap:
std::ranges::chunk_view::outer-iterator::operator++std::ranges::chunk_view::outer-iterator::operator++
π¦ Synopsis
constexpr /*outer-iterator*/& operator++(); (1) (since C++23)
constexpr void operator++( int ); (2) (since C++23)
Increments the iterator. Thatβs the whole plot, fr fr.
Let parent_ be the underlying pointer to enclosing chunk_view. This is important, bestie β hold onto it.
1) Equivalent to:
ranges::advance(*parent_->current_, parent_->remainder_,
ranges::end(parent_->base_));
parent_->remainder_ = parent_->n_;
return *this;
Before invocation of this operator the expression *this == std::default_sentinel must be false. Like, must must. Do not skip the vibe check. π
2) Equivalent to ++*this.
π Parameters
(none)
Zero. Nada. The parameter list is empty and living its best minimalist life. π«Ά
π Return value
1) *this
2) (none)
π₯ Example
This section is incomplete.
Reason: no example
not me showing up to the example section and finding it empty π
π See also
operator-calculates the number of chunks remained(C++23)(function)
π Category
- Todo no example
mwah π this page is brought to you by cppreference.com, dated 2024.06.10, and itβs the std::ranges...::operator++(3) manual page. stay iconic, 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