Overview of The New C++ (C++0x)
Год: 2011
Автор: Scott Meyers
Жанр: Presentation Materials
Издательство: Artima Press
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Нет
Количество страниц: 364
Описание: This PDF document contains the presentation materials from Scott Meyers' three-day training course on C++11, the latest version of C++. This intensively technical seminar introduces the most important new features in C++11 and explains how to get the most out of them.
About the course Specification of the new version of C++ (“C++11”) is finally complete, and many compilers (e.g., Visual C++ and Gnu C++) already offer many features from the revised language. And such features! auto-declared variables reduce typing drudgery and syntactic noise; Unicode and threading support address important functionality gaps; and rvalue references and variadic templates facilitate the creation of more efficient, more flexible libraries. The standard library gains resource-managing smart pointers, new containers, additional algorithms, support for regular expressions, and more. Altogether, C++11 offers much more than “old” C++. This intensively technical seminar introduces the most important new features in C++11 and explains how to get the most out of them.
The History and Vocabulary of C++ Evolution
Sample Program: C++98 vs. C++11
Features for Everybody:
auto for Type Declarations
Range-Based for Loops
“>>” as Nested Template Closer
nullptr
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 and Rvalue References
default Member Functions
delete Functions
Default Member Initialization
Delegating Constructors
Inheriting Constructors
Features Primarily for Library Authors:
Static Assertions
explicit Conversion Functions
Variadic Templates
decltype
Perfect Forwarding
Yet More Features (Overview)
Removed and Deprecated Features (Overview)
Sources for Further Information