Enter C++11

Picture of "hello world" in C by Use...
Image via Wikipedia


C++ Programmers (AKA, REAL Programmers) rejoice! The new standard for C++ has been published! A lot of exciting and powerful features have been added not only to the STL, but to the language itself. Some features include automatic type deduction, new algorithms, nullptr, lambda expressions, and (my favorite) a standard Threading Library. And to make it even better, it’s even faster than the current standard. I just const’d myself.

Essentially, C++ is moving up to the standard of more modern languages by providing users with more advanced functionality while maintaining ease-of-use. Some of the features are pretty complex, even in the most high-level languages like C#. But, even a concept like lambda expressions are pretty easy. Take this example (source):

int main()
   char s[]="Hello World!";
   int Uppercase = 0; //modified by the lambda
   for_each(s, s+sizeof(s), [&Uppercase] (char c) {
    if (isupper(c))
 cout<< Uppercase<

This is pretty easy to understand, no? Uppercase is the return value of the lambda. The lambda takes char c as an argument, and then it defines the body of the function right there inside the parameter for for_each. Isn’t that amazing?!

I don’t want to ramble on, but here are some very useful links so you can get your feet wet with C++11 before it comes out on your favorite compilers.

The Biggest Changes in C++11 (and Why You Should Care)
C++0x – The Next ISO C++ Standard
Wikipedia – C++11
JTC1/SC22/WG21 – The C++ Standards Committee

I can’t wait. This is too exciting. And I better see this for AIX or I’ll probably scream. Till next time, take care, people!

PS, about the “REAL Programmers” joke, listen, all I’m saying is that using a language that has a Garbage Collector is like having your mother clean up after you. Grow up. =D


Published by


Computer Scientist for Engility, and Indie Game Dev from New Jersey. Loves playing games, and loves making them, too.

One thought on “Enter C++11”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s