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