Pointers, references and cv qualifications get red right to left, not left to right (with the exception of the inner most cv qualification which can be on either side of the base type).
Ex:
int * const & is a reference to a const pointer to int.
const int * * const * volatile & is a reference to a volatile pointer to a const pointer to pointer to const int. It's equivalent to int const * * const * volatile &
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement