Why Endianess Matters?
The knowledge of endianess helps us to makes our code more adaptable to different computers. If our program deals with saving and reading data in a binary format (like an encrypted code), knowledge of endianess can save us from problems when our code moves to a different system.
std::endian in C++ 20
In C++ programming, there’s a new addition in C++20 called std::endian. It’s a helper that makes dealing with the way computers store data in memory much simpler. In this article, we will discuss the std::endian and how to use it in C++ program.