Type Punning
Interpret the memory in another type.
In C++20 we may gain bit_cast14 which gives a simple and safe way to type-pun as well as being usable in a constexpr context
Aug 22, 20241 min read
Interpret the memory in another type.
In C++20 we may gain bit_cast14 which gives a simple and safe way to type-pun as well as being usable in a constexpr context