Skip to content

Conversation

@dbaileychess
Copy link
Collaborator

This change introduces a new flatc option, --gen-absl-hash, which, when enabled, generates AbslHashValue overloads for FlatBuffers structs. This allows these structs to be used as keys in Abseil hash containers like absl::flat_hash_map and absl::flat_hash_set. The generated AbslHashValue combines the hash of each non-deprecated field within the struct.

@github-actions github-actions bot added python c++ codegen Involving generating code from schema labels Dec 19, 2025
@dbaileychess dbaileychess merged commit 8cb53cc into master Dec 19, 2025
50 checks passed
@dbaileychess dbaileychess deleted the push-lpuqqnxzqqow branch December 21, 2025 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ codegen Involving generating code from schema python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant