C++ restrict Semantics
问题 I'm in the process of updating performance critical libraries to use restrict, as implemented in C++11 by g++ and MSVC with the keyword __restrict . This seems to be the most-standard-extension, so I'll use restrict and __restrict interchangeably. restrict is a C99 keyword, but nevertheless compilers have defined important uses for it in C++. This post intends to be a "question" asking about what each C++-specific use is and what it means, followed by a CW answer answering it. Feel free to