Answers for "c++ find in pair"

C++
1

c++ find in pair

auto it = std::find_if( sortList.begin(), sortList.end(),
    [&User](const std::pair<std::string, int>& element){ return element.first == User.name;} );
Posted by: Guest on April-27-2021

Browse Popular Code Answers by Language