April 10, 2008

C++0x Automates Type Deduction with auto

nother C++0x feature is going to simplify the way you write C++ code. Instead of tediously writing the type of a variable when you declare it, a C++0x compiler will deduce the variable’s type automatically simply by looking at its initializer?if you ask it to. The following sections will demonstrate