Remove redundant operators !=

This commit is contained in:
Nekotekina 2021-04-29 20:53:07 +03:00
parent 98c0b3a2b1
commit f8e05f8e3c
13 changed files with 11 additions and 251 deletions

View file

@ -138,14 +138,9 @@ public:
return bs_t(0, lhs.m_data ^ rhs.m_data);
}
friend constexpr bool operator ==(bs_t lhs, bs_t rhs)
constexpr bool operator ==(bs_t rhs) const
{
return lhs.m_data == rhs.m_data;
}
friend constexpr bool operator !=(bs_t lhs, bs_t rhs)
{
return lhs.m_data != rhs.m_data;
return m_data == rhs.m_data;
}
constexpr bool test_and_set(T bit)