diff options
author | quou <quou@disroot.org> | 2024-12-29 14:57:03 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-29 14:57:03 +1100 |
commit | 26d353966a72c8de343dcdc9ce94b7fe5d82f003 (patch) | |
tree | cf0e3ea9752ee14f68c624f4ecdbc8d17be121d0 /video.hpp | |
parent | ec53bbe9fc8ceac1618955b55c65197c4481dc5e (diff) |
add operator!= to Primitive_Id
Diffstat (limited to 'video.hpp')
-rw-r--r-- | video.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |