RAD Studio |  |

Use of Storage Class Specifiers
See Also
Collapse All

Provides information on C++ storage class specifiers.

Storage classes specifiers are also called type specifiers. They dictate the location (data segment, register, heap, or stack) of an object and its duration or lifetime (the entire running time of the program, or during execution of some blocks of code).

Storage class can be established by the declaration syntax, by its placement in the source code, or by both of these factors.

The keyword mutable does not affect the lifetime of the class member to which it is applied.

The storage class specifiers in C++ are:

- auto
- __declspec
- extern
- mutable
- register
- static
- typedef

See Also

Storage Class Specifier Keywords

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!