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

Issue 1738883004: Support for move-only types in SmallMap. (Closed)

Created:
4 years, 9 months ago by btolsch
Modified:
4 years, 9 months ago
Reviewers:
danakj
CC:
chromium-reviews, gavinp+memory_chromium.org, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added support for move-only types to SmallMap. Also added move-only type support to ManualConstructor since SmallMap depends on it. This enables SmallMap to be used with scoped_ptr and other move-only types as a mapped type. This change was motivated by wanting to use SmallMap instead of std::map to store a typically small set of scoped_ptr objects in this issue: https://codereview.chromium.org/1744673002/ . BUG= R=danakj@chromium.org Committed: https://crrev.com/0b80170cc8634062fc65c7d24ef47bdd8a66c017 Cr-Commit-Position: refs/heads/master@{#378287}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move => InitFromMove rename #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -5 lines) Patch
M base/containers/small_map.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M base/containers/small_map_unittest.cc View 1 chunk +54 lines, -0 lines 0 comments Download
M base/memory/manual_constructor.h View 1 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
btolsch
I realize this might not be a high priority for base/ but I think it ...
4 years, 9 months ago (2016-02-26 23:27:59 UTC) #2
Lei Zhang
I'm taking some time off, as indicated by "OOO", so tossing this to danakj.
4 years, 9 months ago (2016-02-27 00:07:39 UTC) #4
danakj
https://codereview.chromium.org/1738883004/diff/1/base/memory/manual_constructor.h File base/memory/manual_constructor.h (right): https://codereview.chromium.org/1738883004/diff/1/base/memory/manual_constructor.h#newcode61 base/memory/manual_constructor.h:61: inline void Move(ManualConstructor<Type>&& o) { std::move() means you're moving ...
4 years, 9 months ago (2016-02-27 00:32:03 UTC) #5
btolsch
You're about the name Move() being subtly wrong so that is changed. https://codereview.chromium.org/1738883004/diff/1/base/memory/manual_constructor.h File base/memory/manual_constructor.h ...
4 years, 9 months ago (2016-02-27 01:18:37 UTC) #8
danakj
LGTM
4 years, 9 months ago (2016-02-29 18:17:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1738883004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1738883004/20001
4 years, 9 months ago (2016-02-29 18:19:52 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/152578)
4 years, 9 months ago (2016-02-29 18:27:55 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1738883004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1738883004/40001
4 years, 9 months ago (2016-02-29 20:34:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1738883004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1738883004/40001
4 years, 9 months ago (2016-02-29 21:57:34 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-02-29 22:13:09 UTC) #21
commit-bot: I haz the power
4 years, 9 months ago (2016-02-29 22:14:38 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0b80170cc8634062fc65c7d24ef47bdd8a66c017
Cr-Commit-Position: refs/heads/master@{#378287}

Powered by Google App Engine
This is Rietveld 408576698