Quantcast
Channel: Cpp11 – On C++ and other OOPscenities
Viewing all articles
Browse latest Browse all 23

C++11: Move semantics

$
0
0
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. If you run this code, you will see an […]

Viewing all articles
Browse latest Browse all 23

Trending Articles