cxxomfort  rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
Namespaces | Enumerations
20-endian.hpp File Reference

Implementation of std::endian. More...

Namespaces

 cxxomfort
 Namespace of the cxxomfort library.
 
 cxxomfort::cxxostd
 Backports made available by cxxomfort.
 

Enumerations

enum  endian
 Endianness enumeration for C++. More...
 

Detailed Description

Implementation of std::endian.

Enumeration Type Documentation

◆ endian

enum endian
strong

Endianness enumeration for C++.

C++20 Backports:
Endianness

endian is a typed enumeration that describes the potential values for a system's endianness. The enumeration has three values: little , big and native . native will equal one of the other two when the system has that endianness, or will equal none of them in a system with a different (non-little, non-big) endianness.

The macro __cpp_lib_endian is defined when this feature is backported.

See also
https://en.cppreference.com/w/cpp/types/endian