[ox/std] Add bitwise not to strong int

This commit is contained in:
Gary Talent 2019-08-01 23:20:17 -05:00
parent 2fb1c7e401
commit 3c45558dfc

View File

@ -84,6 +84,8 @@ class Integer: Base {
constexpr Integer<T, Base> operator^=(Integer<T, Base> i) noexcept; constexpr Integer<T, Base> operator^=(Integer<T, Base> i) noexcept;
constexpr Integer<T, Base> operator~() const noexcept;
// Prefix increment // Prefix increment
constexpr Integer<T, Base> operator++() noexcept; constexpr Integer<T, Base> operator++() noexcept;
@ -246,6 +248,11 @@ constexpr Integer<T, Base> Integer<T, Base>::operator^=(Integer<T, Base> i) noex
return Integer<T, Base>(m_i ^= i.m_i); return Integer<T, Base>(m_i ^= i.m_i);
} }
template<typename T, class Base>
constexpr inline Integer<T, Base> Integer<T, Base>::operator~() const noexcept {
return Integer<T, Base>(~m_i);
}
// Prefix increment // Prefix increment
template<typename T, class Base> template<typename T, class Base>
constexpr inline Integer<T, Base> Integer<T, Base>::operator++() noexcept { constexpr inline Integer<T, Base> Integer<T, Base>::operator++() noexcept {