[ox/std] Add != to BString

This commit is contained in:
Gary Talent 2019-02-25 21:46:54 -06:00
parent 0ea44e5ead
commit 6ddd44828b

View File

@ -39,6 +39,8 @@ class BString {
constexpr bool operator==(const BString &other) noexcept;
constexpr bool operator!=(const BString &other) noexcept;
constexpr char operator[](std::size_t i) const noexcept;
constexpr char &operator[](std::size_t i) noexcept;
@ -136,6 +138,11 @@ constexpr bool BString<buffLen>::operator==(const BString<buffLen> &other) noexc
return retval;
}
template<std::size_t buffLen>
constexpr bool BString<buffLen>::operator!=(const BString<buffLen> &other) noexcept {
return !operator==(other);
}
template<std::size_t buffLen>
constexpr char BString<buffLen>::operator[](std::size_t i) const noexcept {
return m_buff[i];