Programming Challenge 1


Description

Create a simple program to demonstrate the effectiveness/efficiency of move semantics compared with copying. Use an example of a simple class that stores a string. Provide construction by const-reference, by rvalue-reference, and by value. Experimentally show the cost of these three different versions as the size of the string grows.

Details