const
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

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:

Show:
© 2016 Microsoft