cptr::detail::basic_ordered_map::insert_or_assign

insert_or_assign overloads

Synopses

Declared in <cptr/ordered_map.hpp>

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

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

As above, moving key into the map only if it is inserted.

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

insert_or_assign() with a hint, which is not used.

template<class M>
iterator
insert_or_assign(
    const_iterator,
    K const& key,
    M&& value);
» more...

insert_or_assign() with a hint, which is not used, moving key.

template<class M>
iterator
insert_or_assign(
    const_iterator,
    K&& key,
    M&& value);
» more...