Friday, July 7, 2017

C++11: decltype

decltype(N) can be used as a type specifier. The type used is the type of N. For example: int i; decltype(i) j; declares j to be of type int.


No comments:

Post a Comment