cptr::detail::basic_unordered_map::try_emplace

If key is absent, insert it with a value built from args; otherwise do nothing, and leave args untouched. Returns the element with that key and whether it was inserted. Strong guarantee.

Synopsis

Declared in <cptr/unordered_map.hpp>

template<class... Args>
std::pair<iterator, bool>
try_emplace(
    K const& key,
    Args&&... args);