Lecture 2 - Slide 24 : 29
Deduction of types with decltype

It is possible to decuce the type of an arbitrary expression with decltype

dt1.cc
Trivial uses of decltype.

Most real-life uses of decltype takes place in generic program - using templates

dt2.cc
A sample use of decltype in a function template: matrix plus.
dt3.cc
Another sample use of decltype in a function template: container example.