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: This function shall not participate in overload resolution unless is_­integral_­v<IntType> is true.
Effects: Equivalent to: return b = b << shift;
template<class IntType> constexpr byte operator<<(byte b, IntType shift) noexcept;
Remarks: This function shall not participate in overload resolution unless is_­integral_­v<IntType> is true.
Effects: Equivalent to:
return static_cast<byte>(static_cast<unsigned char>(
	                   static_cast<unsigned int>(b) << shift));
template<class IntType> constexpr byte& operator>>=(byte& b, IntType shift) noexcept;
Remarks: This function shall not participate in overload resolution unless is_­integral_­v<IntType> is true.
Effects: Equivalent to: return b >> shift;
template<class IntType> constexpr byte operator>>(byte b, IntType shift) noexcept;
Remarks: This function shall not participate in overload resolution unless is_­integral_­v<IntType> is true.
Effects: Equivalent to:
return static_cast<byte>(static_cast<unsigned char>(
	                   static_cast<unsigned int>(b) >> shift));
constexpr byte& operator|=(byte& l, byte r) noexcept;
Effects: Equivalent to: return l = l | r;
constexpr byte operator|(byte l, byte r) noexcept;
Effects: Equivalent to:
return static_cast<byte>(static_cast<unsigned char>(static_cast<unsigned int>(l) |
                                                    static_cast<unsigned int>(r)));
constexpr byte& operator&=(byte& l, byte r) noexcept;
Effects: Equivalent to: return l = l & r;
constexpr byte operator&(byte l, byte r) noexcept;
Effects: Equivalent to:
return static_cast<byte>(static_cast<unsigned char>(static_cast<unsigned int>(l) &
                                                    static_cast<unsigned int>(r)));
constexpr byte& operator^=(byte& l, byte r) noexcept;
Effects: Equivalent to: return l = l ^ r;
constexpr byte operator^(byte l, byte r) noexcept;
Effects: Equivalent to:
return static_cast<byte>(static_cast<unsigned char>(static_cast<unsigned int>(l) ^
                                                    static_cast<unsigned int>(r)));
constexpr byte operator~(byte b) noexcept;
Effects: Equivalent to:
return static_cast<byte>(static_cast<unsigned char>(
	                   ~static_cast<unsigned int>(b)));
template<class IntType> constexpr IntType to_integer(byte b) noexcept;
Remarks: This function shall not participate in overload resolution unless is_­integral_­v<IntType> is true.
Effects: Equivalent to: return static_­cast<IntType>(b);