std::multim...emplace_hint(3)
okay so this is the std::multim...emplace_hint(3) page (aka std::multimap::emplace_hint) from the C++ Standard Libary man pages β yes, that's the header's spelling, not a typo I made ππ
π NAME π
std::multimap::emplace_hint β std::multimap::emplace_hint
πΈ Synopsis πΈ
template< class... Args > (since
C++11)
iterator emplace_hint( const_iterator hint, Args&&... args );
bestie, what this does is insert a new element into the container as close as possible to the position just before hint. that's the whole vibe. β¨
The constructor of the element type (value_type, that is, std::pair<const Key, T>) is called with exactly the same arguments as supplied to the function, forwarded with std::forward<Args>(args)....
No iterators or references are invalidated. periodt. π
π 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, fr fr. π«Ά
β Complexity β
Logarithmic in the size of the container in general, but amortized constant if the new element is inserted just before hint.
π Example π
This section is incomplete Reason: no example
β¨ See also β¨
emplaceβ constructs element in-place (C++11) (public member function)insertβ inserts elements or nodes (since C++17) (public member function)
π Category π
* Todo no example
mwah π source: http://cppreference.com; dated 2024.06.10. byeee 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