Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

search in vector of pairs c++

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