Answers for "how to get the first value of a pair from vector of pair"

C++
3

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; });
Posted by: Guest on July-03-2020

Code answers related to "how to get the first value of a pair from vector of pair"

Browse Popular Code Answers by Language