Skip to content

Commit

Permalink
Merge pull request #153 from sylph01/add-non-const-op-star-in-chapter31
Browse files Browse the repository at this point in the history
Add non-const operator* in cin_iterator
  • Loading branch information
EzoeRyou committed Aug 11, 2021
2 parents 867af67 + f56416b commit 72ddd3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 031-iterator-operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,8 @@ struct cin_iterator
{ ++*this ; }

// キャッシュした値を返す
reference operator *()
{ return value; }
const reference operator *() const
{ return value ; }

Expand Down

0 comments on commit 72ddd3b

Please sign in to comment.