@@ -712,6 +712,10 @@ inline bool operator!=(const Test &lhs, const Test &rhs) {
712712 return !(lhs == rhs);
713713}
714714
715+ template <typename H>
716+ inline H AbslHashValue (H h, const Test &obj) {
717+ return H::combine (std::move (h), obj.a (), obj.b ());
718+ }
715719
716720FLATBUFFERS_MANUALLY_ALIGNED_STRUCT (8 ) Vec3 FLATBUFFERS_FINAL_CLASS {
717721 private:
@@ -810,6 +814,10 @@ inline bool operator!=(const Vec3 &lhs, const Vec3 &rhs) {
810814 return !(lhs == rhs);
811815}
812816
817+ template <typename H>
818+ inline H AbslHashValue (H h, const Vec3 &obj) {
819+ return H::combine (std::move (h), obj.x (), obj.y (), obj.z (), obj.test1 (), obj.test2 (), obj.test3 ());
820+ }
813821
814822FLATBUFFERS_MANUALLY_ALIGNED_STRUCT (4 ) Ability FLATBUFFERS_FINAL_CLASS {
815823 private:
@@ -859,6 +867,10 @@ inline bool operator!=(const Ability &lhs, const Ability &rhs) {
859867 return !(lhs == rhs);
860868}
861869
870+ template <typename H>
871+ inline H AbslHashValue (H h, const Ability &obj) {
872+ return H::combine (std::move (h), obj.id (), obj.distance ());
873+ }
862874
863875FLATBUFFERS_MANUALLY_ALIGNED_STRUCT (4 ) StructOfStructs FLATBUFFERS_FINAL_CLASS {
864876 private:
@@ -912,6 +924,10 @@ inline bool operator!=(const StructOfStructs &lhs, const StructOfStructs &rhs) {
912924 return !(lhs == rhs);
913925}
914926
927+ template <typename H>
928+ inline H AbslHashValue (H h, const StructOfStructs &obj) {
929+ return H::combine (std::move (h), obj.a (), obj.b (), obj.c ());
930+ }
915931
916932FLATBUFFERS_MANUALLY_ALIGNED_STRUCT (4 ) StructOfStructsOfStructs FLATBUFFERS_FINAL_CLASS {
917933 private:
@@ -945,6 +961,10 @@ inline bool operator!=(const StructOfStructsOfStructs &lhs, const StructOfStruct
945961 return !(lhs == rhs);
946962}
947963
964+ template <typename H>
965+ inline H AbslHashValue (H h, const StructOfStructsOfStructs &obj) {
966+ return H::combine (std::move (h), obj.a ());
967+ }
948968
949969} // namespace Example
950970
0 commit comments