The decltype specifier can be used to obtain the declared type of an entity or the type of an expression.
To treat an entity (technically id-expression or class member access expression) as an expression, it can be surrounded by parenthesis.
Click to open in Compiler Explorer.
Leave a comment