Auto Type Deduction

In C++03, auto specifies that a variable has automatic storage duration. This means that the variable is destroyed when it falls out of scope. This contrasts with static variables which persist for the lifetime of the program. Since the default storage duration is auto, the specifier is usually omitted. In C++11, the auto keyword has … Read more

nullptr

In C++03, there is no concept of null built in to the language. For anyone familiar with C# or Java, this is quite surprising. Prior to C++11, the NULL literal was typically used to overcome this omission. However, there are some downsides to using NULL: The NULL literal is implementation-defined so it could, for example, … Read more