11
If I move a pair into a map, but the insert failed because the key already exists, can I safely use the pair afterwards?
//objects available: map, pair
auto insert_pair = map.insert(std::move(pair));
if (!insert_pair.second)
{
//can I safely access pair here?
}
Has this been documented in the standard?