
CodePudding user response:
Simple said is,C + + 11 provisions above the decltype (e) has four derivation principle, concrete can have a look at the deep understanding of the c + + 11. In turn is derived according to the four order,
His third rule if e is an lvalue, of type T, the derived type is T&
CodePudding user response:

He is judgment in order these four, the first is without parentheses markers, such as
int a;
The decltype c (a);//this is int
Then if death value, it deduces T& &
Then the left value, as T& Derivation,,,,
CodePudding user response: