We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11b4216 commit 2484324Copy full SHA for 2484324
Userland/Libraries/LibGfx/Size.h
@@ -220,3 +220,12 @@ template<>
220
ErrorOr<Gfx::IntSize> decode(Decoder&);
221
222
}
223
+
224
+template<typename T>
225
+struct AK::Traits<Gfx::Size<T>> : public AK::DefaultTraits<Gfx::Size<T>> {
226
+ static constexpr bool is_trivial() { return false; }
227
+ static unsigned hash(Gfx::Size<T> const& size)
228
+ {
229
+ return pair_int_hash(AK::Traits<T>::hash(size.width()), AK::Traits<T>::hash(size.height()));
230
+ }
231
+};
0 commit comments