add little fun != to vec

v1
Brett 2024-01-02 01:18:47 -05:00
parent d882b76d83
commit 73094dbd6d
1 changed files with 5 additions and 0 deletions

View File

@ -267,6 +267,11 @@ namespace blt {
return true;
}
template<typename T, uint32_t size>
inline constexpr bool operator!=(const vec<T, size>& left, const vec<T, size>& right) {
return !(left == right);
}
template<typename T, uint32_t size>
inline constexpr bool operator&&(const vec<T, size>& left, const vec<T, size>& right) {
for (uint32_t i = 0; i < size; i++)