home > resources > c++ coding standard > online version

Chapter 5. Take benefit from C++

Be Const Correct

C++ provides the const keyword. This makes it possible to indicate that a method doesn't modify the objects that it receives as parameters. Using const in all the right places is called "const correctness." It's hard at first, but using const really tightens up your coding style. Const correctness grows on you.

If you're in the darkness about what Const Correctness exactly is, read the relevant section in the C++ FAQ