摘要: const与* *符号左侧为所指对象的语义,*符号右侧为指针自身语义 const与iterator const iterator(是T* const) != const_iterator 详细原因应参考c++编译和c++设计与演化 const避免将==写成= 运算符的重载函数返回const对象可以避 阅读全文
posted @ 2022-08-20 12:08 ijpq 阅读(27) 评论(0) 推荐(0) 编辑