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

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

πŸ’– NAME πŸ’–

std::back_insert_iterator::operator* β€” std::back_insert_iterator::operator*

okay so bestie, welcome to the C++ Standard Libary manual page for this exact member function. It’s giving iterator-core, and it’s honestly iconic. πŸŽ€


πŸ¦‹ Synopsis πŸ¦‹

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

So here’s the tea: this member function does nothing. Literally nothing. It exists to satisfy the requirements of LegacyOutputIterator.

It returns the iterator itself, which makes it possible to use code such as *iter = value to output (insert) the value into the underlying container. Slay. ✨


πŸŽ€ Parameters πŸŽ€

(none)

No parameters. Zero. Nada. The parameter list is empty and living its best life. 🫢


πŸ’… Return value πŸ’…

*this

It returns *this, periodt. πŸ‘‘


peace out, bestie β€” this iconic page came from http://cppreference.com and is dated 2024.06.10 🫢✨

πŸ“¦ where this page comes from