Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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; });
 
PREVIOUS NEXT
Tagged: #find #set #pairs #cpp
ADD COMMENT
Topic
Name
3+9 =