The automatic type declarations are very rarely or seldom used in C++. Now it really stands it’s meaning to make use of Automatic types.

auto f = GetValue();

In the above code, f will be of type on what Getvalue() function returns. This feature is already there other programming languages like VB. Auto type is really useful in Generic programming (using templates).

There’s another type declaration feature will be added to the core language. The new language will include decltype keyword for declaring a variable having same type of another (existing) without knowing the other variable type. This is really handy in context with auto type.

 int a = 10;
decltype(a) b;
decltype(int) a; // Error and redundant

Now the new variable “b” will be of type “a”. Check out the proposal for decltype for more information