[ox/std] Add bitwise not to strong int
This commit is contained in:
parent
2fb1c7e401
commit
3c45558dfc
7
deps/ox/src/ox/std/strongint.hpp
vendored
7
deps/ox/src/ox/std/strongint.hpp
vendored
@ -84,6 +84,8 @@ class Integer: Base {
|
||||
|
||||
constexpr Integer<T, Base> operator^=(Integer<T, Base> i) noexcept;
|
||||
|
||||
constexpr Integer<T, Base> operator~() const noexcept;
|
||||
|
||||
// Prefix increment
|
||||
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);
|
||||
}
|
||||
|
||||
template<typename T, class Base>
|
||||
constexpr inline Integer<T, Base> Integer<T, Base>::operator~() const noexcept {
|
||||
return Integer<T, Base>(~m_i);
|
||||
}
|
||||
|
||||
// Prefix increment
|
||||
template<typename T, class Base>
|
||||
constexpr inline Integer<T, Base> Integer<T, Base>::operator++() noexcept {
|
||||
|
Loading…
Reference in New Issue
Block a user