std::flat_m...mplace_hint(3)
π NAME π
okay bestie, this page is std::flat_m...mplace_hint, and it lives in the C++ Standard Library (yes, the whole vibe). The actual thing: std::flat_multimap::emplace_hint β std::flat_multimap::emplace_hint.
β¨ Synopsis β¨
template< class... Args > (since
C++23)
iterator emplace_hint( const_iterator hint, Args&&... args );
So what does it do? It inserts a new element into the container as close as possible to the position just before hint. The element typeβs constructor β thatβs value_type, aka std::pair<const Key, T> β gets called with exactly the same arguments you supplied to the function, forwarded with std::forward<Args>(args)....
The info 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. thatβs the whole return vibe β¨
π¦ Exceptions π¦
If an exception is thrown for any reason, this function has no effect β itβs giving strong exception safety guarantee. periodt.
π§ Complexity π§
This section is incomplete π (the page literally says so, no cap).
π Example π
This section is incomplete. Reason: no example. π
π See also π
emplaceβ constructs element in-place (public member function).insertβ inserts elements (public member function).
π·οΈ Categories π·οΈ
- Todo without reason
- Todo no example
cute sign-off bestie: source is http://cppreference.com, version/date is 2024.06.10, and the page label is std::flat_m...mplace_hint(3). stay slay π
π
π¦ 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