Export (0) Print
Expand All
3 out of 13 rated this helpful - Rate this topic

const (C++)

When modifying a data declaration, the const keyword specifies that the object or variable is not modifiable.

const declaration ;
member-function const ;

When following a member function's parameter list, the const keyword specifies that the function does not modify the object for which it is invoked.

For more information on const, see the following topics:

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.