std::ranges...::operator++(3)

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

πŸ’… 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