Documentation Home >> Headers >> <jss/concurrent_map.hpp> Header >> jss::concurrent_map >> insert member function

If there is no key-value pair associated with the specified key in a given jss::concurrent_map object, construct a new one from the supplied key-value pair.

std::pair<iterator,bool> insert(value_type const& data);

Returns:

this->emplace(data.first,data.second).

Synchronization:

insert() may be called concurrently with any other member function of jss::concurrent_map on a given instance (except for the constructor and destructor) without external synchronization.

Header

#include <jss/concurrent_map.hpp>

See Also