std::flat_m...mplace_hint(3)
π NAME π
okay bestie, we're in the C++ Standard Libary manual β yes, that's the exact spelling in the header, typo and all, iconic β and this page is std::flat_m...mplace_hint(3) π
.
The actual name is std::flat_multiset::emplace_hint, and the page's name line literally says std::flat_multiset::emplace_hint β std::flat_multiset::emplace_hint (yes, it repeats itself, no notes).
β¨ Synopsis β¨
template< class... Args >
iterator emplace_hint( const_iterator hint, Args&&... args );
(since C++23) β¨
What it does: inserts a new element into the container as close as possible to the position just before hint π«Ά.
The constructors of the key and mapped value are called with exactly the same arguments as supplied to the function, forwarded with std::forward<Args>(args)... β exactly, no extras, no remix π₯.
Also, a tiny note that literally says: Information on iterator invalidation is copied from here. iykyk.
πΈ Parameters πΈ
hintβ iterator to the position before which the new element will be inserted π―argsβ arguments to forward to the constructor of the element π§
π Return value π
An iterator to the inserted element. slay. β¨
π¦ Exceptions π¦
If an exception is thrown for any reason, this function has no effect β that's the strong exception safety guarantee, periodt π. Like, any reason at all, bestie.
β Complexity β
This section is incomplete π. That's genuinely all it says here.
π Example π
This section is incomplete π«
Reason: no example β literally the reason the page gives. no example era, I guess.
π See also π
emplaceβ constructs element in-place (public member function) πinsertβ inserts elements (public member function) π
π Categories π
- Todo without reason
- Todo no example
and that's the whole page, bestie π! footer vibes: source/version is http://cppreference.com, date is 2024.06.10, and the page name down there is std::flat_m...mplace_hint(3) β mwah π.
π¦ 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