- Exercise

In this exercise, you will implement one of the examples in the previous lesson with move semantic.

We'll cover the following

Task 1

In the program below, a BigArray with 10 billion entries will be pushed to an std::vector. Compile the program and measure its performance. The program requires that you compile this program for 64-bit.

Task 2

Extend BigArray with move semantic and measure the performance once more.

How big is the performance gain?

Get hands-on with 1200+ tech skills courses.