std::front_...r::operator*(3)

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

std::front_insert_iterator::operator* πŸ’…

okay so this is the std::front_insert_iterator::operator* page from the C++ Standard Libary manual β€” yes bestie, Libary, typo and all, we are not fixing it, it's part of the vibe. the header/footer shorthand is std::front_...r::operator*(3), and honestly? iconic. 🫢


✨ NAME ✨

std::front_insert_iterator::operator* - std::front_insert_iterator::operator*

that's the name. same thing twice, zero notes. main character energy. πŸ‘‘

🌸 Synopsis 🌸

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

so what does it do? does nothing, bestie. this member function is provided to satisfy the requirements of LegacyOutputIterator. no cap.

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. so you can do the dereference-assign thing and the value gets output (inserted) into the underlying container. slay. πŸ’–

πŸŽ€ Parameters πŸŽ€

(none) β€” no parameters. not one. zero. the void of arguments. respect it. πŸŽ€

πŸ’œ Return value πŸ’œ

*this β€” it returns the iterator itself. periodt. πŸ’…

made with love by source http://cppreference.com, version/date 2024.06.10, page std::front_...r::operator*(3) β€” byeee bestie, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from