C++11: Move semantics

Consider this example: You have a class A and a container called List<T>. As shown in the code below, the container is just a wrapper of a std::vector.

You also have a function called getNObjects that returns a list containing N instances of the class A.
Continue reading “C++11: Move semantics”