How to sort a vector of a class so that objects that have same name are grouped together

前端 未结 0 1895
梦如初夏
梦如初夏 2020-11-22 11:39

I have the following 2 classes:

class Restaurant {
    public:
    std::string name;
    std::set food;
};

class Owner {
    public:
    R         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题