I wrote a set of functions to print out an address in my libaddr library (see addr.h header).
I am easily able to test the erase_event by changing one of my format flags:
std::cout << addr::setaddrsep("\n") << addresses;
I do not care about the imbue_event (the locale has no effect on IP addresses).
What I'm wondering is how to generate a copyfmt_event. When does that happen? Since it is expected to duplicate my structure, I need to make sure that part works as expected (no double delete, no leaks, proper copy).
Reference: https://en.cppreference.com/w/cpp/io/ios_base/event