Const-correctness - C++ Syntax

C++ Syntax

In C++, all data types, including those defined by the user, can be declared const, and const-correctness dictates that all objects should be declared as such unless they need to be modified. Such proactive use of const makes values "easier to understand, track, and reason about," and it thus increases the readability and comprehensibility of code and makes working in teams and maintaining code simpler because it communicates information about a value's intended use.

Read more about this topic:  Const-correctness