Thanks for you feedback. Feeling very happy to see that my explanation has helped you understand the topic. If you have understood STLs, you are...
C++ STL algorithms are template functions which operate on sequence of elements. A large number of such functions are provided by the STL to do...
STL includes a set of template classes that overload the function call operator (operator ()). Instances of those classes are called functors or...
Iterator is a concept of objects which can be used to traverse through the elements of a collection of objects like STL containers. An iterator...
C++ program is a collection of statements. Normal statements are sequential and executed sequentially. These statements can be: Declaration...
All container classes are part of std name space. Most of the member functions of container classes are common and have common functionality. The...
As the name suggests STL is the part of the C++ standard library which provides a rich set of template classes and template functions to make...
Objects vs Closures Closures might not be a familiar term for most of the C++ programmers. C++ programmers are very much familiar with class,...
C++ standard library is a set of user defined types(classes), objects and functions which help to develop applications. Without standard library...
We have discussed about inbuilt data types and inbuilt operators which operate on inbuilt data types only. We also discussed about user defined...
We learned that all the variables have type. We also learned that type specify the memory size required to store the variable data and the...
Basically computer programming is all about data and manipulation of data. The manipulation is called operation and operations are accomplished...
In previous chapter we came to know about data types. There are data types defined by the language called in-built data types. C++ also allows to...
In the previous chapter we saw how to compile a C++ source code in a single file. The extension of the source code file name should be .cpp...
Before we go into the details of C++ templates let us take an example of function overloading. I am assuming you know what is function...
C++11 has introduced a lot of of features to make programming easier. For example automatic type deduction and less typing. Range based for loop...
In the earlier chapters we discussed that we write programs in human readable text and then the compiler converts it to machine readable format so...
In the first chapter we have seen what are the minimum elements a program should have. In this chapter we will learn to create those basic...
C++ is a programming language which has evolved from it’s ancestor C language. Bjarne Stroustrup is the creator of the C++ language. Before C++...
Invoking copy constructor in C++ has always been problematic, specially when the copy operation is expensive. While passing parameter by value and...
Separate names with a comma.