constness

C3O1N1S1T1N1E1S1S1

noun

The declaration of variables or objects as immutable.

Scrabble 11

Meanings

nounconstness (uncountable)
  1. 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 180

    Synonyms: 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
APA

constness. (n.d.). In WatkinsX Dictionary. Retrieved November 3, 2026, from https://dictionary.watkinsx.com/word/constness

MLA

“constness.” WatkinsX Dictionary, https://dictionary.watkinsx.com/word/constness. Accessed November 3, 2026.

Chicago

WatkinsX Dictionary, s.v. “constness,” accessed November 3, 2026, https://dictionary.watkinsx.com/word/constness.

Source: constness on Wiktionary, CC BY-SA 4.0.