Internal Code Change

PiperOrigin-RevId: 515855852
Change-Id: I8016eefd45c36089e189bbd1ebbe9fdabe68255b
This commit is contained in:
Abseil Team 2023-03-11 02:48:04 -08:00 committed by Copybara-Service
parent 038e392ebd
commit 391ce627de

View File

@ -1474,6 +1474,7 @@ class SomeOfArrayMatcher {
operator Matcher<U>() const { // NOLINT
using RawU = typename std::decay<U>::type;
std::vector<Matcher<RawU>> matchers;
matchers.reserve(matchers_.size());
for (const auto& matcher : matchers_) {
matchers.push_back(MatcherCast<RawU>(matcher));
}