Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's your favorite C++0x feature? [closed]

Tags:

c++

c++11

People also ask

What is c 0x?

C++0x is the working draft of the new C++ programming language standard. Note: C++0x is a new version of the C++ programming language standard. IBM continues to develop and implement the features of the new standard. The implementation of the language level is based on IBM's interpretation of the standard.

What is STD C ++ 0x?

C++0x was the working name for the new standard for C++, adding many language features that I'll cover in this series on C++11. In September 2011, C++0x was officially published as the new C++11 standard, and many compilers now provide support for some of the core C++11 features.


auto keyword for variable type inferencing


Lambdas and initializer lists.

Also, the changes to make it easier to eventually bring C++ into a garbage collected model, those seem pretty interesting. Perhaps C++1x will actually bring in garbage collection, but 0x/10 just set things up for the eventuality.


I want Rvalues references.

All the other new features are stuff that we could easily live without(alas features). However the lack of Rvalues in C++ so far has caused hundreds of template library authors to have to "hack" around the broken Rvalue ref issue.


Variadic templates! (Which combined with r-value references gives us perfect forwarding!)


Threads and atomics.

With multicore processors now the norm C++0x should have been C++07.

G.