Home:ALL Converter>When are const volatile objects necessary?

When are const volatile objects necessary?

Ask Time:2013-08-14T12:28:35         Author:user541686

Json Formatter

When are const volatile objects necessary in C++?

Note: I do understand the need for pointers to const volatile memory locations, but those don't require the objects themselves to be const or volatile.
I'm asking about objects that are themselves of some const volatile type, for example:

const volatile T obj;

In which situations are these necessary or useful?

Author:user541686,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/18223228/when-are-const-volatile-objects-necessary
yy