The Endian library provides facilities for dealing with endianness. It's part of Boost since release 1.58.0. See the documentation for more information.
Tested on Travis and Appveyor.
Distributed under the Boost Software License, Version 1.0.