Skip to content

Commit 997b043

Browse files
author
Dave Abrahams
committed
Update a benchmark for new indexing model
1 parent f0c3bc2 commit 997b043

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

benchmark/single-source/StaticArray.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ struct A2X<T : StaticArrayProtocol> : StaticArrayProtocol {
4444
struct StaticArray<
4545
T : StaticArrayProtocol
4646
> : StaticArrayProtocol, RandomAccessCollection, MutableCollection {
47+
typealias Indices = CountableRange<Int>
48+
4749
init(_ defaultValue : T.ElemTy) { values = T(defaultValue) }
4850
var values : T
4951
func get(_ idx: Int) -> T.ElemTy { return values.get(idx) }

0 commit comments

Comments
 (0)