Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Issue 2821313002: Use std::begin() and std::end() in base::ContainsValue() (Closed)

Created:
3 years, 8 months ago by Tom Sepez
Modified:
3 years, 8 months ago
Reviewers:
Lei Zhang, danakj
CC:
chromium-reviews, danakj+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use std::begin() and std::end() in base::ContainsValue() This allows ContainsValue() to be applied to either arrays or containers lacking a begin method (by overriding std::begin()). Review-Url: https://codereview.chromium.org/2821313002 Cr-Commit-Position: refs/heads/master@{#466071} Committed: https://chromium.googlesource.com/chromium/src/+/1bc3466095f183745f2fc934b266869689fba7d5

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M base/stl_util.h View 1 chunk +2 lines, -2 lines 0 comments Download
M base/stl_util_unittest.cc View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
Tom Sepez
Lei, for review.
3 years, 8 months ago (2017-04-18 16:31:10 UTC) #5
Lei Zhang
So starring at this today, it occurred to me stl_util.h is for working with STL ...
3 years, 8 months ago (2017-04-18 19:19:34 UTC) #8
Tom Sepez
On 2017/04/18 19:19:34, Lei Zhang wrote: > So starring at this today, it occurred to ...
3 years, 8 months ago (2017-04-18 19:25:19 UTC) #10
Lei Zhang
Let's ask danakj@ for a second opinion. I'm on the fence.
3 years, 8 months ago (2017-04-18 19:30:28 UTC) #12
Tom Sepez
On 2017/04/18 19:30:28, Lei Zhang wrote: > Let's ask danakj@ for a second opinion. I'm ...
3 years, 8 months ago (2017-04-20 16:29:34 UTC) #13
danakj
I think standard library algorithm things should work on arrays also, LGTM
3 years, 8 months ago (2017-04-20 16:36:24 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2821313002/1
3 years, 8 months ago (2017-04-20 16:39:23 UTC) #16
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 18:12:04 UTC) #19
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/1bc3466095f183745f2fc934b266...

Powered by Google App Engine
This is Rietveld 408576698