restrict qualifier on member functions (restrict this pointer)
问题 Note: To clarify, the question is not about the use of the restrict keyword in general, but specifically about applying it to member functions as described here. gcc allows you to use the __restrict__ (the GNU++ equivalent to C99's restrict ) qualifier on a member function, effectively making this a restrict qualified pointer within the function's scope. Where is the beef? Most member functions work on other members, accessing them via this , which is a T* const (and normally unaliased). For