Const-correctness confusion with non-mutating collections

前端 未结 0 425
执笔经年
执笔经年 2021-01-02 05:30

Assume that I have a Widget class and a collection of Widgets:

class Widget
{
public:
    void mutate() {}
};

class WidgetCollectio         


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