absl::byteswap

Reverses the bytes in the given integer value x.

Synopsis

Declared in <absl/numeric/bits.h>

using std::byteswap;

Description

absl::byteswap participates in overload resolution only if T satisfies integral, i.e., T is an integer type. The program is ill-formed if T has padding bits.

See https://en.cppreference.com/w/cpp/numeric/byteswap.