+ 4

Restrict

Is there any C++ type qualifier similar to 'restrict' in C?

15th Oct 2018, 6:08 PM
Moses Odhiambo
Moses Odhiambo - avatar
1 Odpowiedź
+ 3
All signs point to "Not as of C++14", with lots of discussion around compiler-specific behavior above C99 (specifically for gcc, g++ and so on) here, for c++: https://stackoverflow.com/questions/776283/what-does-the-restrict-keyword-mean-in-c I didn't dig much past this though; there could be something out there I didn't see.
15th Oct 2018, 6:39 PM
Kirk Schafer
Kirk Schafer - avatar