decltype specifier
From Cppreference
Queries the type of an expression
Contents |
[edit] Syntax
decltype ( expression ) | |||||||||
[edit] Explanation
decltype is useful when declaring types that are difficult or impossible to declare using standard notation, like lambda-related types or types that depend on template parameters.
[edit] Keywords
[edit] Example
Output:
i = 33, j = 66 i = 4, j = 9