[ox/std] Add != to BString
This commit is contained in:
parent
0ea44e5ead
commit
6ddd44828b
7
deps/ox/src/ox/std/string.hpp
vendored
7
deps/ox/src/ox/std/string.hpp
vendored
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user