struct record { std::string name; int id; //GUID id; _____________________________________________________________________________________________________
//change id type, below doesn’t need change }; auto find_id(const std::vector<record> &people, const std::string &name){...} _________
auto ii = find_if(people.begin(), people.end(), match_name ); if (ii != people.end()){...}