Home >Backend Development >C#.Net Tutorial >What are the new features of c++11
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.
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
(2 )nullptr null pointer
(3)for container traversal
## (4)lambda expressionUse lambda expressions to count the number of strings and the number of uppercase letters (5) override, final Override means overriding the base class The virtual function final means that overwriting the base class virtual function is prohibited (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 (7) move constructorThe 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!