register (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Keywords, Alphabetical Listing Index


Storage Class Specifiers (C++)


register <data definition> ;


Use the register storage class specifier to store the variable being declared in a CPU register (if possible), to optimize access and reduce code.

Note: The compiler can ignore requests for register allocation. Register allocation is based on the analysis of the compiler of how a variable is used.