restrict-qualifier

What does the restrict keyword mean in C++?

牧云@^-^@ 提交于 2019-11-26 00:45:41
问题 I was always unsure, what does the restrict keyword mean in C++? Does it mean the two or more pointer given to the function does not overlap? What else does it mean? 回答1: In his paper, Memory Optimization, Christer Ericson says that while restrict is not part of the C++ standard yet, that it is supported by many compilers and he recommends it's usage when available: restrict keyword ! New to 1999 ANSI/ISO C standard ! Not in C++ standard yet, but supported by many C++ compilers ! A hint only,