Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 214 Bytes

File metadata and controls

3 lines (2 loc) · 214 Bytes

为什么不定义 const 版本的递增和递减运算符?

答:因为递增和递减运算符会改变对象本身的状态,而 const 版本表示对象本身的状态不变,二者之间存在矛盾。