The copy-and-swap idiom identifies that we can implement a classes copy/move assignment operators in terms of its copy/move constructor and achieve st
Continue ReadingC++: Copy a Range of Elements
On line 7, we create a std::vector<int> called source containing a sequence of values that we wish to copy. On line 9, we have another std::v
Continue ReadingC++: Copy a String
This task is about copying a string. Where it is relevant, distinguish between copying the contents of a string versus making an additional reference
Continue Reading