summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-29 14:57:03 +1100
committerquou <quou@disroot.org>2024-12-29 14:57:03 +1100
commit26d353966a72c8de343dcdc9ce94b7fe5d82f003 (patch)
treecf0e3ea9752ee14f68c624f4ecdbc8d17be121d0
parentec53bbe9fc8ceac1618955b55c65197c4481dc5e (diff)
add operator!= to Primitive_Id
-rw-r--r--video.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/video.hpp b/video.hpp
index 1ccc93d..523ded6 100644
--- a/video.hpp
+++ b/video.hpp
@@ -23,6 +23,9 @@ struct Primitive_Id {
bool operator==(Primitive_Id<T> other) const {
return index == other.index;
}
+ bool operator!=(Primitive_Id<T> other) const {
+ return index != other.index;
+ }
operator bool() const {
return index != 0;
}