Lambda functions and expressions in C++11
In my opinion, the single biggest addition to C++11 is the Lambda function and expressions (for more features in C++ click here…). Look at the case when you are calling std::sort function, you have to specify the comparator function and then pass that function as an argument to std::sort. In such situations, you may want […]
Separate nullptr in C++11
In my earlier articles on C++, I have written about the automatic type detection, uniform initialization list and Range based for loopin C++11. Earlier we used to use the NULL macro which is synonymous to int zero. This came as an inheritance from C language where 0 plays a double role (as an int and as NULL […]
Range based for loop of C++11 Similar to 'for each'
In my previous articles about C++11 standard I talked about automatic type detection , decltype keyword and uniform initializer list introduced in C++11. Lets see the Range-based for loop today:
Uniform Initializer lists in C++11
In my previous article about the latest C++11 standard I talked about automatic type detection and keyword decltype Today I will take another major enhancement in C++11 called the Initializer List or Uniform Initialization Syntax.
C++11 feature – automatic type detection and decltype
C++11 is the latest version of C++ language originally designed by Stroustrup. I read an interview of him where he said that the latest standard (C++11 or C++0x) feels like a new language. I will be publishing the new features added to the core language and to the STL in following articles in next few […]