摘要: ##我们都知道const成员函数只能调用非const成员函数 但是有的时候,我们为了代码复用 例如: T operator[](int i) const; T& operator[](int i); 为了实现const和非const两个版本,我们选择使用重载,但是里面的内容可能是相同的,为了代码复用 阅读全文
posted @ 2020-05-27 21:49 make_wheels 阅读(2225) 评论(0) 推荐(0)