31 template <
typename T,
typename = std::enable_if_t<std::is_
integral_v<T>>>
62 constexpr uint8_t
value() const noexcept {
return value_ ? 1 : 0; }
63 constexpr operator uint8_t() const noexcept {
return value(); }
A 1-bit unsigned integer type.
constexpr uint1_t operator*(const uint1_t &other) const noexcept
constexpr uint1_t operator^(const uint1_t &other) const noexcept
constexpr uint1_t operator|(const uint1_t &other) const noexcept
constexpr bool operator<(const uint1_t &other) const noexcept
constexpr bool operator==(const uint1_t &other) const noexcept=default
uint1_t & operator=(const uint1_t &other)=default
constexpr bool operator>(const uint1_t &other) const noexcept
constexpr uint1_t(T v) noexcept
constexpr uint1_t operator/(const uint1_t &other) const noexcept
constexpr bool operator>=(const uint1_t &other) const noexcept
constexpr uint1_t operator&(const uint1_t &other) const noexcept
constexpr uint1_t(bool b) noexcept
constexpr uint1_t operator-() const noexcept
constexpr uint1_t operator~() const noexcept
constexpr uint1_t operator+(const uint1_t &other) const noexcept
constexpr bool operator<=(const uint1_t &other) const noexcept
constexpr uint1_t operator-(const uint1_t &other) const noexcept
constexpr bool operator!=(const uint1_t &other) const noexcept=default
constexpr uint1_t operator<<(const uint1_t &other) const noexcept
constexpr uint8_t value() const noexcept
constexpr uint1_t operator>>(const uint1_t &other) const noexcept
constexpr uint1_t() noexcept
uint1_t(const uint1_t &other)=default