Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
71530982
Commit
71530982
authored
Jun 17, 2021
by
CJ Johnson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3429 from 1KoT1:master
PiperOrigin-RevId: 379625931
parents
22a2e019
5ef9f63a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
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
::
ElementsAreArrayMatcher
<
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
::
ElementsAreArrayMatcher
<
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
::
ElementsAreArrayMatcher
<
typename
Container
::
value_type
>
ElementsAreArray
(
const
Container
&
container
)
{
inline
auto
ElementsAreArray
(
const
Container
&
container
)
->
decltype
(
ElementsAreArray
(
container
.
begin
(),
container
.
end
())
)
{
return
ElementsAreArray
(
container
.
begin
(),
container
.
end
());
}
template
<
typename
T
>
inline
internal
::
ElementsAreArrayMatcher
<
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