const_cast

C/C++ Reference

const_cast
Syntax:
  const_cast<type> (object);

The const_cast keyword can be used to remove the const or volatile property from some variable. The target data type must be the same as the source type, except (of course) that the target type doesn't have to be const.

Related topics: