rcpputils  master
C++ API providing common utilities and data structures.
Namespaces | Macros | Enumerations
endian.hpp File Reference

If std::endian is not available, the necessary functions are emulated. More...

Go to the source code of this file.

Namespaces

 rcpputils
 

Macros

#define RCPPUTILS_NO_STD_ENDIAN
 

Enumerations

enum  rcpputils::endian { rcpputils::endian::little = __ORDER_LITTLE_ENDIAN__, rcpputils::endian::big = __ORDER_BIG_ENDIAN__, rcpputils::endian::native = __BYTE_ORDER__ }
 Type traits for defining the endianness at compile-time. More...
 

Detailed Description

If std::endian is not available, the necessary functions are emulated.

Note: Once std::endian is supported on all ROS2 platforms, this class can be deprecated in favor of the built-in functionality.

Note: std::endian is targeted for C++20

Macro Definition Documentation

◆ RCPPUTILS_NO_STD_ENDIAN

#define RCPPUTILS_NO_STD_ENDIAN