mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-17 18:10:41 +00:00
This allows iterating on all values in a store along with the Id for each value, instead of `llvm::enumerate(store.array_ref())` which would give you the indices. While the indices are really the same as the Ids, this provides a typesafe way to enumerate() over a store. There's no use for this right now, but I thought I needed this, and it helped me debug, and it was a pain to write correctly without dangling references. --------- Co-authored-by: Richard Smith <richard@metafoo.co.uk>