set pair c++ code example
Example 1: find in set of pairs using first value cpp
auto it = std::find_if(st.begin(), st.end(), [](const pair<int,int>& p ){ return p.first == 1; });
Example 2: c++ create pair
make_pair(a,b)
Example 3: make pair in c++
Pair_name = make_pair (value1,value2);
#Abhay Tiwari IITP