constness
constness noun: the declaration of variables or objects as immutable.
Noun
constness (uncountable)
- The 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 180
- Synonyms:
- immutability
Synonyms of constness
Origin of constness
From const (“a keyword for constant in the C programming language and its derivatives”) + -ness.
Questions about constness
- What does constness mean?
- Constness means the declaration of variables or objects as immutable.
- What part of speech is constness?
- Constness is a noun.
Words near constness in the dictionary
Source and license
Adapted from Wiktionary: constness (page history and authors). Text available under the Creative Commons Attribution-ShareAlike 4.0 license. Word.ws reformatted the entry and added links. Wiktionary data of 2026-09-02.
Last updated:
Cite this entry: “constness.” Word.ws, https://word.ws/constness. Based on Wiktionary, CC BY-SA 4.0.
