|
|
The const_cast operator is used to explicitly override const and/or volatile in a cast. It has this general form:
const_cast<type> (expr)
The target type must be the same as the source type except for the alteration of its const or volatile attributes. The most common use of const_cast is to remove constness.
|
|