What are the new features of C++ 11?

coldplay.xixi
Release: 2020-10-30 09:42:33
original
22246 people have browsed it

C 11 new features: 1. auto; 2. nullptr; 3. for; 4. lambda expression; 5. override, final; 6. rvalue reference; 7. move constructor; 8. container initialization.

What are the new features of C++ 11?

C 11 new features:

(1) auto

Use auto to add any two numbers

What are the new features of C++ 11?

(2) nullptr null pointer

What are the new features of C++ 11?[1]

(3) for container traversal

What are the new features of C++ 11?[2]

(4) lambda expression

Use lambda expression The formula counts the number of strings and the number of uppercase letters

What are the new features of C++ 11?[3]

(5) override, final

Override means rewriting the base The virtual function of the class

final means that overriding the base class virtual function is prohibited

What are the new features of C++ 11?[4]

## (6) Rvalue reference

lvalue: points to a stable memory space lvalue means Location, addressing means

rvalue: points to a temporary memory space rvalue means read, read-only means

What are the new features of C++ 11?[5]

(7) move constructor

What are the new features of C++ 11?[6]

Related learning recommendations:

C video tutorial

The above is the detailed content of What are the new features of C++ 11?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Latest issues
Popular Tutorials
More>
Latest downloads
More>
web effects
Website source code
Website materials
Front end template
About us Disclaimer Sitemap
PHP Chinese website:Public welfare online PHP training,Help PHP learners grow quickly!