What is the purpose of std::make_pair?

Why not just do std::pair<int, char>(0, 'a')?

Is there any difference between the two methods?

7 Answers
7

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *