Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

search in vector of pairs c++

auto it = std::find_if( sortList.begin(), sortList.end(),
    [&User](const std::pair<std::string, int>& element){ return element.first == User.name;} );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #search #vector #pairs
ADD COMMENT
Topic
Name
7+8 =