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

Issue 2532313002: Allow custom comparators for the MRUCache (Closed)

Created:
4 years ago by Ryan Sleevi
Modified:
4 years ago
Reviewers:
dcheng
CC:
chromium-reviews, vmpstr+watch_chromium.org, Eran Messeri
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow custom comparators for the MRUCache //base's MRUCache allowed specifying key and value types, like an underlying std::map<>, but the default base::MRUCache explicitly specialized the comparator as std::less<>. Rather than require the caller to overload std::less<> or operator<, allow the comparator to be specified as a templated argument. BUG=665735 Committed: https://crrev.com/b36da9dffc6fed50a8d72d1818d5a574e6502940 Cr-Commit-Position: refs/heads/master@{#434850}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M base/containers/mru_cache.h View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
Ryan Sleevi
dcheng: Hopefully stupid easy
4 years ago (2016-11-28 23:00:25 UTC) #2
dcheng
lgtm, though I thought that in recent years, the guidance of the C++ style guide ...
4 years ago (2016-11-28 23:17:39 UTC) #5
Ryan Sleevi
On 2016/11/28 23:17:39, dcheng wrote: > lgtm, though I thought that in recent years, the ...
4 years ago (2016-11-28 23:19:29 UTC) #6
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/2532313002/1
4 years ago (2016-11-29 02:13:27 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-11-29 02:57:03 UTC) #12
commit-bot: I haz the power
4 years ago (2016-11-29 03:04:15 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/b36da9dffc6fed50a8d72d1818d5a574e6502940
Cr-Commit-Position: refs/heads/master@{#434850}

Powered by Google App Engine
This is Rietveld 408576698