constness

名词 n.

英文释义

名词 n.
  1. The declaration of variables or objects as immutable. uncountable
    — If you want to change a class member inside a const member function, the traditional approach is to cast away constness by saying (X*)this.

词源

From const (“a keyword for constant in the C programming language and its derivatives”) + -ness.
0 次浏览 数据来源: Wiktionary