What is the purpose of std::launder?
std::launder is aptly named, though only if you know what it’s for. It performs memory laundering. Consider the example in the paper: struct X { const int n; }; union U { X x; float f; }; … U u = {{ 1 }}; That statement performs aggregate initialization, initializing the first member of U … Read more