Quantcast
Channel: Learn Modern C++
Viewing all articles
Browse latest Browse all 33

Move Semantics in Modern C++ (2)

$
0
0
Now that we’ve looked at how std::move() can be applied to Standard Library types, such as std::string, in this article we’re going to look at creating our own “move-aware” type. We want it to have at least one member for which moving is potentially cheaper than copying, and for this we’ll use a raw char*… Continue reading Move Semantics in Modern C++ (2)

Viewing all articles
Browse latest Browse all 33

Trending Articles