Skip to content

Commit bd8cf02

Browse files
committed
[cxx-interop] Remove manual std::vector conformance in the benchmark
`std::vector::const_iterator` is now automatically conformed to `UnsafeCxxRandomAccessIterator`, and `std::vector` is conformed to `CxxRandomAccessCollection`. The manually added conformances are now redundant.
1 parent 4a29080 commit bd8cf02

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

benchmark/cxx-source/CxxVectorSum.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,4 @@ public func run_CxxVectorOfU32_Sum_Swift_Reduce(_ n: Int) {
126126
}
127127
blackHole(sum)
128128
}
129-
130-
extension VectorOfU32.const_iterator : Equatable, UnsafeCxxInputIterator { }
131-
132-
extension VectorOfU32: CxxSequence {}
133129
#endif

benchmark/utils/CxxTests/CxxStdlibPerformance.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,3 @@ inline uint32_t testVector32Sum(size_t vectorSize, size_t iters) {
3232
}
3333
return sum;
3434
}
35-
36-
// FIXME: remove when the templated operator == is correctly bridged.
37-
inline bool operator ==(const VectorOfU32::const_iterator &lhs, const VectorOfU32::const_iterator &rhs) { return lhs.base() == rhs.base(); }

0 commit comments

Comments
 (0)