Meanings
- uncountablecomputingThe declaration of variables or objects as immutable.
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.
1995, Embedded Systems Programming, volume 8, page 180Synonyms: immutability
Synonyms & antonyms
nounThe declaration of variables or objects as immutable.
Origin
From const (“a keyword for constant in the C programming language and its derivatives”) + -ness.
Full word history & related roots →Cite this entry
constness. (n.d.). In WatkinsX Dictionary. Retrieved November 3, 2026, from https://dictionary.watkinsx.com/word/constness
“constness.” WatkinsX Dictionary, https://dictionary.watkinsx.com/word/constness. Accessed November 3, 2026.
WatkinsX Dictionary, s.v. “constness,” accessed November 3, 2026, https://dictionary.watkinsx.com/word/constness.
Source: constness on Wiktionary, CC BY-SA 4.0.