1. pair #
Created Thursday 06 February 2020
- present in iostream
- make_pair(val1, val2) or initialize using () or {}.
- used in functions tor return multiple objects.
- has public attributes first and second.
Example
pair<int, int> A;
A.first, A.second; // lvalues also
A = {1, 3}; // direct assignment