14class UponCopyPrinter {
16 UponCopyPrinter() =
default;
17 UponCopyPrinter(UponCopyPrinter &&) =
default;
18 UponCopyPrinter(
const UponCopyPrinter &) { std::cout <<
"Invoking copy c'tor!" << std::endl; }
33 std::cout <<
v.data() <<
" and " <<
v2.data() << std::endl;
40 v2.push_back(UponCopyPrinter());
43 std::cout <<
v.data() <<
" and " <<
v2.data() << std::endl;
A "std::vector"-like collection of values implementing handy operation to analyse them.