utils: Add index operators to UniqueVector

And put it into the utils namespace.

Change-Id: Ib4c6fadc63954196d572148d0e96ffec6e3bbb38
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/68404
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Ben Clayton
2021-11-04 22:29:22 +00:00
parent 89d8b2b7a5
commit cc26a4166d
7 changed files with 50 additions and 11 deletions

View File

@@ -74,7 +74,7 @@ struct ZeroInitWorkgroupMemory::State {
};
/// A list of unique ArrayIndex
using ArrayIndices = UniqueVector<ArrayIndex, ArrayIndex::Hasher>;
using ArrayIndices = utils::UniqueVector<ArrayIndex, ArrayIndex::Hasher>;
/// Expression holds information about an expression that is being built for a
/// statement will zero workgroup values.