- Sample Program: C++98 vs. C++11
- Features for Everybody:
auto
for Type Declarations- Range-Based
for
Loops - “>>” as Nested Template Closer
nullptr
- Enhanced
enum
s - Unicode characters and strings
- Raw string literals
- Uniform initialization syntax
- Initializer lists
- Lambda Expressions
- Template Aliases
- Threading Support
- Library Enhancements:
- New Container Features
- Smart Pointers (
shared_ptr
,weak_ptr
,unique_ptr
) - Hash Tables
- Singly-Linked Lists
- Fixed-Size Arrays
- Tuples
- Regular Expressions
- Generalized Functors(
function
) - Generalized Binder (
bind
) - New Algorithms
- Other New Library Functionality
- Features Primarily for Class Authors:
- Move Support, Rvalue References, and Perfect Forwarding
default
Member Functionsdelete
Functions- Default Member Initialization
- Delegating Constructors
- Inheriting Constructors
- Features Primarily for Library Authors:
- Static Assertions
explicit
Conversion Functions- Variadic Templates
decltype
- Alignment control (i.e.,
alignof
,alignas
, etc.
- More C++11 Features (Overview)
- More C++14 Features (Overview)
- Removed and Deprecated Features (Overview)