Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2023-01-09 08:20:12 -08:00
14 changed files with 2856 additions and 863 deletions

View File

@@ -259,6 +259,26 @@ public:
return !pair.second.hasValue();
});
}
typename VectorStorage::iterator vector_begin() {
assert(isFrozen() && "Can only call this in map mode");
return storage.begin();
}
typename VectorStorage::iterator vector_end() {
assert(isFrozen() && "Can only call this in map mode");
return storage.end();
}
typename VectorStorage::const_iterator vector_begin() const {
assert(isFrozen() && "Can only call this in map mode");
return storage.begin();
}
typename VectorStorage::const_iterator vector_end() const {
assert(isFrozen() && "Can only call this in map mode");
return storage.end();
}
};
template <typename Key, typename Value, typename Storage>