Skip to content

Commit 7080f67

Browse files
authored
Merge pull request swiftlang#62880 from apple/egorzhdan/bench-remove-extensions
[cxx-interop] Remove manual `std::vector` conformance in the benchmark
2 parents 8c6fe1c + bd8cf02 commit 7080f67

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)