in the stl map class I see the use of a function pair and make_pair.
What is the difference between pair and make_pair?
dictionary.inse rt(std::pair<Ke y, Value>(k,v));
works as well as:
dictionary.inse rt(std::make_pa ir<Key, Value>(k,v));
What is the difference between pair and make_pair?
dictionary.inse rt(std::pair<Ke y, Value>(k,v));
works as well as:
dictionary.inse rt(std::make_pa ir<Key, Value>(k,v));
Comment