The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.


When modifying a data declaration, the const keyword specifies that the object or variable is not modifiable. When following a member function's parameter list, the const keyword specifies that the function doesn't modify the object for which it is invoked.

const declaration ;
member-function const ;

For more information on const, see the following topics:

See Also

C++ Keywords

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft