User and Reference Guide for the Intel® C++ Compiler 14.0
Determines whether pointer disambiguation is enabled with the restrict qualifier.
Linux OS and OS X: | -restrict -no-restrict |
Windows OS: | /Qrestrict /Qrestrict- |
None
-no-restrict or /Qrestrict- |
Pointers are not qualified with the restrict keyword. |
This option determines whether pointer disambiguation is enabled with the restrict qualifier. Option -restrict and /Qrestrict enable the recognition of the restrict keyword as defined by the ANSI standard.
By qualifying a pointer with the restrict keyword, you assert that an object accessed by the pointer is only accessed by that pointer in the given scope. You should use the restrict keyword only when this is true. When the assertion is true, the restrict option will have no effect on program correctness, but may allow better optimization.
Windows: Language > Recognize The Restrict Keyword
Linux: Language > Recognize The Restrict Keyword
OS X: None
None