| |||
| Home > Language Extensions > C99 language features available in C++ and C90 > restrict | |||
The restrict keyword is a C99 feature that enables you to ensure that different object pointer types and function parameter arrays do not point to overlapping regions of memory. Therefore, the compiler performs optimizations that can be otherwise prevented because of possible aliasing.
To enable the restrict keyword in C90 or C++,
you must specify the --restrict option.
The keywords __restrict and __restrict__ are
supported as synonyms for restrict and are always available,
regardless of whether --restrict is specified.
New features of C99 in the Compiler User Guide.