std::back_i...::operator++(3)
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
- 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