Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
71530982
Commit
71530982
authored
Jun 17, 2021
by
CJ Johnson
Browse files
Merge pull request #3429 from 1KoT1:master
PiperOrigin-RevId: 379625931
parents
22a2e019
5ef9f63a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
googlemock/include/gmock/gmock-matchers.h
googlemock/include/gmock/gmock-matchers.h
+8
-8
No files found.
googlemock/include/gmock/gmock-matchers.h
View file @
71530982
...
...
@@ -3981,26 +3981,26 @@ ElementsAreArray(Iter first, Iter last) {
}
template
<
typename
T
>
inline
internal
::
ElementsAreArray
Matcher
<
T
>
ElementsAreArray
(
const
T
*
pointer
,
size_t
count
)
{
inline
auto
ElementsAreArray
(
const
T
*
pointer
,
size_t
count
)
->
decltype
(
ElementsAreArray
(
pointer
,
pointer
+
count
)
)
{
return
ElementsAreArray
(
pointer
,
pointer
+
count
);
}
template
<
typename
T
,
size_t
N
>
inline
internal
::
ElementsAreArray
Matcher
<
T
>
ElementsAreArray
(
const
T
(
&
array
)[
N
]
)
{
inline
auto
ElementsAreArray
(
const
T
(
&
array
)[
N
])
->
decltype
(
ElementsAreArray
(
array
,
N
)
)
{
return
ElementsAreArray
(
array
,
N
);
}
template
<
typename
Container
>
inline
internal
::
ElementsAreArray
Matcher
<
typename
Container
::
value_type
>
ElementsAreArray
(
con
st
Container
&
container
)
{
inline
auto
ElementsAreArray
(
const
Container
&
container
)
->
decltype
(
ElementsAreArray
(
con
tainer
.
begin
(),
container
.
end
())
)
{
return
ElementsAreArray
(
container
.
begin
(),
container
.
end
());
}
template
<
typename
T
>
inline
internal
::
ElementsAreArray
Matcher
<
T
>
ElementsAreArray
(
::
std
::
initializer_list
<
T
>
xs
)
{
inline
auto
ElementsAreArray
(
::
std
::
initializer_list
<
T
>
xs
)
->
decltype
(
ElementsAreArray
(
xs
.
begin
(),
xs
.
end
())
)
{
return
ElementsAreArray
(
xs
.
begin
(),
xs
.
end
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment