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.
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.