21 Language support library [language.support]

21.2 Common definitions [support.types]

21.2.5 byte type operations [support.types.byteops]

template <class IntType> constexpr byte& operator<<=(byte& b, IntType shift) noexcept;

Remarks: Эта функция не будет участвовать в разрешении перегрузки , если is_­integral_­v<IntType> не true.

Effects: Эквивалентен: return b = byte(static_­cast<unsigned char>(b) << shift);

template <class IntType> constexpr byte operator<<(byte b, IntType shift) noexcept;

Remarks: Эта функция не будет участвовать в разрешении перегрузки , если is_­integral_­v<IntType> не true.

Effects: Эквивалентен: return byte(static_­cast<unsigned char>(b) << shift);

template <class IntType> constexpr byte& operator>>=(byte& b, IntType shift) noexcept;

Remarks: Эта функция не будет участвовать в разрешении перегрузки , если is_­integral_­v<IntType> не true.

Effects: Эквивалентен: return b = byte(static_­cast<unsigned char>(b) >> shift);

template <class IntType> constexpr byte operator>>(byte b, IntType shift) noexcept;

Remarks: Эта функция не будет участвовать в разрешении перегрузки , если is_­integral_­v<IntType> не true.

Effects: Эквивалентен: return byte(static_­cast<unsigned char>(b) >> shift);

constexpr byte& operator|=(byte& l, byte r) noexcept;

Effects: Эквивалентен:

return l = byte(static_cast<unsigned char>(l) | static_cast<unsigned char>(r));

constexpr byte operator|(byte l, byte r) noexcept;

Effects: Эквивалентен:

return byte(static_cast<unsigned char>(l) | static_cast<unsigned char>(r));

constexpr byte& operator&=(byte& l, byte r) noexcept;

Effects: Эквивалентен:

return l = byte(static_cast<unsigned char>(l) & static_cast<unsigned char>(r));

constexpr byte operator&(byte l, byte r) noexcept;

Effects: Эквивалентен:

return byte(static_cast<unsigned char>(l) & static_cast<unsigned char>(r));

constexpr byte& operator^=(byte& l, byte r) noexcept;

Effects: Эквивалентен:

return l = byte(static_cast<unsigned char>(l) ^ static_cast<unsigned char>(r));

constexpr byte operator^(byte l, byte r) noexcept;

Effects: Эквивалентен:

return byte(static_cast<unsigned char>(l) ^ static_cast<unsigned char>(r));

constexpr byte operator~(byte b) noexcept;

Effects: Эквивалентен: return byte(~static_­cast<unsigned char>(b));

template <class IntType> constexpr IntType to_integer(byte b) noexcept;

Remarks: Эта функция не будет участвовать в разрешении перегрузки , если is_­integral_­v<IntType> не true.

Effects: Эквивалентен: return IntType(b);