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
25208a60
Commit
25208a60
authored
Nov 12, 2021
by
dinord
Browse files
Merge pull request #3650 from tambry:std_iterator
PiperOrigin-RevId: 409417242
parents
9ca071b6
5d1e4af6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
googlemock/test/gmock-matchers_test.cc
googlemock/test/gmock-matchers_test.cc
+7
-5
No files found.
googlemock/test/gmock-matchers_test.cc
View file @
25208a60
...
...
@@ -5424,12 +5424,14 @@ class Streamlike {
}
private:
class ConstIter : public std::iterator<std::input_iterator_tag,
value_type,
ptrdiff_t,
const value_type*,
const value_type&> {
class
ConstIter
{
public:
using
iterator_category
=
std
::
input_iterator_tag
;
using
value_type
=
T
;
using
difference_type
=
ptrdiff_t
;
using
pointer
=
const
value_type
*
;
using
reference
=
const
value_type
&
;
ConstIter
(
const
Streamlike
*
s
,
typename
std
::
list
<
value_type
>::
iterator
pos
)
:
s_
(
s
),
pos_
(
pos
)
{}
...
...
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