4 ms·
C++20 introduces bit_cast to do this. The implementation of bit_cast is semantically equivalent to using memcpy.
by Kranar 6y ago
C++20 introduces bit_cast to do this. The implementation of bit_cast is semantically equivalent to using memcpy.
4 ms·