Check out example codes for "vector of pairs declaration in cpp". It will help you in understanding the concepts better.

Code Example 1

vector<pair<int,int>>v;

Learn ReactJs, React Native from akashmittal.com