Definify.com
Definition 2024
constness
constness
English
Noun
constness (uncountable)
- (programming) The declaration of variables or objects as immutable.
- 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
.
- If you want to change a class member inside a
- 1995, Embedded Systems Programming (volume 8, page 180)
Related terms
Translations
declaration of objects as immutable