Check out example codes for "type id c++". It will help you in understanding the concepts better.

Code Example 1

decltype(0xdeedbeef) number = 0; // number is of type int!
decltype(someArray[0]) element = someArray[0];

Learn ReactJs, React Native from akashmittal.com