This range is useful when an desired API expects a range or when comparing two different ranges for equality, but the underlying data is a splat. This range removes the need to explicitly construct a vector in those cases.
Depends On D74682
Differential D74683
[mlir] Add a utility iterator range that repeats a given value `n` times. rriddle on Feb 15 2020, 11:32 PM. Authored by
Details This range is useful when an desired API expects a range or when comparing two different ranges for equality, but the underlying data is a splat. This range removes the need to explicitly construct a vector in those cases. Depends On D74682
Diff Detail
Event TimelineComment Actions Can we add this to llvm STLExtras? (since we should upstream all these utilities anyway...)
Comment Actions I was going to originally, but this relies on indexed_accessor_range which also needs to be upstreamed. |
You're the native speaker, but I would have expected to read make_repeated_range?