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

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

okay bestie, welcome to std::back_i...::operator++(3) from the C++ Standard Libary manual πŸ’… this one is short, sweet, and lowkey iconic.


πŸ’– NAME πŸ’–

std::back_insert_iterator::operator++ - std::back_insert_iterator::operator++

(no cap, it's literally the same name twice and we're gonna roll with it ✨)

✨ Synopsis ✨

back_insert_iterator& operator++();                (until C++20)
constexpr back_insert_iterator& operator++();      (since C++20)
back_insert_iterator operator++( int );            (until C++20)
constexpr back_insert_iterator operator++( int );  (since C++20)

Okay so plot twist: this operator does nothing πŸ’€ like, genuinely nothing. These operator overloads are provided to satisfy the requirements of LegacyOutputIterator.

They make it possible for the expressions *iter++=value and *++iter=value to be used to output (insert) a value into the underlying container. That's the whole vibe check πŸ¦‹

πŸŽ€ Parameters πŸŽ€

(none) β€” zero, nada, no arguments, no drama 🫢

🫢 Return value 🫢

*this β€” that's it, that's the answer, periodt πŸ’…


source/version: http://cppreference.com, date: 2024.06.10 β€” page std::back_i...::operator++(3), signing off bestie πŸŒΈπŸŽ€

πŸ“¦ where this page comes from