constness
English
Etymology
const (“a keyword for constant in the C programming language and its derivatives”) + -ness
Noun
constness (uncountable)
- (programming) The declaration of variables or objects as immutable.
- Synonym: immutability
- 1995, Embedded Systems Programming, volume 8, page 180:
- 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
.
Related terms
Translations
declaration of objects as immutable
This article is issued from Wiktionary. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.