What are the new features of c++11

藏色散人
Release: 2020-07-13 11:57:57
Original
3674 people have browsed it

c 11 new features include: 1. Use auto to add any two numbers; 2. nullptr null pointer; 3. for container traversal; 4. lambda expression; 5. override and final; 6. rvalue reference; 7. move constructor; 8. container initialization.

What are the new features of c++11

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

(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 expressions to count the number of strings and the number of uppercase letters

What are the new features of c++11[3]

(5) override, final

Override means overriding the base class The virtual function

final means that overwriting the base class virtual function is prohibited

What are the new features of c++11[4]

(6) rvalue reference

lvalue: points to stable l in the memory space lvalue represents Location, addressing means

rvalue: points to the temporary memory space rvalue in rvalue represents 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]

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 admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!