Merge pull request #3429 from 1KoT1:master
PiperOrigin-RevId: 379625931
This commit is contained in:
commit
7153098229
@ -3981,26 +3981,26 @@ ElementsAreArray(Iter first, Iter last) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline internal::ElementsAreArrayMatcher<T> ElementsAreArray(
|
inline auto ElementsAreArray(const T* pointer, size_t count)
|
||||||
const T* pointer, size_t count) {
|
-> decltype(ElementsAreArray(pointer, pointer + count)) {
|
||||||
return ElementsAreArray(pointer, pointer + count);
|
return ElementsAreArray(pointer, pointer + count);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, size_t N>
|
template <typename T, size_t N>
|
||||||
inline internal::ElementsAreArrayMatcher<T> ElementsAreArray(
|
inline auto ElementsAreArray(const T (&array)[N])
|
||||||
const T (&array)[N]) {
|
-> decltype(ElementsAreArray(array, N)) {
|
||||||
return ElementsAreArray(array, N);
|
return ElementsAreArray(array, N);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Container>
|
template <typename Container>
|
||||||
inline internal::ElementsAreArrayMatcher<typename Container::value_type>
|
inline auto ElementsAreArray(const Container& container)
|
||||||
ElementsAreArray(const Container& container) {
|
-> decltype(ElementsAreArray(container.begin(), container.end())) {
|
||||||
return ElementsAreArray(container.begin(), container.end());
|
return ElementsAreArray(container.begin(), container.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline internal::ElementsAreArrayMatcher<T>
|
inline auto ElementsAreArray(::std::initializer_list<T> xs)
|
||||||
ElementsAreArray(::std::initializer_list<T> xs) {
|
-> decltype(ElementsAreArray(xs.begin(), xs.end())) {
|
||||||
return ElementsAreArray(xs.begin(), xs.end());
|
return ElementsAreArray(xs.begin(), xs.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user