+ 1
Some places where I use pair are as follows: 1. to insert items in a map or unordered_map. It is always recommended to use the insert method of the map/unordered_map class instead of the [] operator 2. return multiple values from a function 3. create a structure to on the fly to hold two related values
14th Mar 2018, 9:23 PM
Alex West
Alex West - avatar