cptr::detail::basic_unordered_map::insert_or_assign

Insert key with value, or assign value to the element that has key. Returns the element and whether it was inserted.

Synopsis

Declared in <cptr/unordered_map.hpp>

template<class M>
std::pair<iterator, bool>
insert_or_assign(
    K const& key,
    M&& value);