std::map::emplace
cppreference.com
[] |
Google. . , . , . |
<metanoindex/>
<tbody> </tbody> template< class... Args > std::pair<iterator,bool> emplace( Args&&... args ); |
( C++11) | |
. , .. . 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)....:
Inserts a new element to the container. The element is constructed in-place, i.e. no copy or move operations are performed. 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).....
| args |
returns a pair consisting of a bool denoting whether the insertion took place and an iterator to the inserted element.
Logarithmic in the size of the container.
.
(C++11) |
, (public -) |
| ( C++17) (public -) |