Posted on

C++ – copy and swap idiom by example

The copy and swap idiom is becoming a popular question in C++ interviews to explore a candidate’s understanding of modern C++. I put together a small github repo / example with references to demonstrate the principle here.

Liked it? Take a second to support ben morris on Patreon!

Leave a Reply

Your email address will not be published. Required fields are marked *