I\'ve seen some methods like this:
void SomeClass::someMethod() const;
What does this const declaration do, and how can it help optimize a prog
My first thought regarding optimization is that since the 'const' indicates that the instance's state hasn't changed, the compiler possibly has more freedom with respect to reordering nearby calls to methods on that instance.