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

Issue 8361004: Add ScopedDeque (similar to the existing ScopedVector). (Closed)

Created:
9 years, 2 months ago by Ian Vollick
Modified:
9 years, 2 months ago
Reviewers:
brettw
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org
Visibility:
Public.

Description

Add ScopedDeque (similar to the existing ScopedVector). BUG= TEST=base_unittests

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -0 lines) Patch
M base/base.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A base/memory/scoped_deque.h View 1 chunk +107 lines, -0 lines 0 comments Download
A base/memory/scoped_deque_unittest.cc View 1 chunk +179 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Ian Vollick
9 years, 2 months ago (2011-10-20 17:34:49 UTC) #1
brettw
This seems like a lot of code. Would it be reasonable for your use case ...
9 years, 2 months ago (2011-10-20 18:15:35 UTC) #2
Ian Vollick
9 years, 2 months ago (2011-10-20 18:46:42 UTC) #3
Yes, thank you. I think that linked_ptr will do the trick. Will close this
issue.

On 2011/10/20 18:15:35, brettw wrote:
> This seems like a lot of code. Would it be reasonable for your use case to use
a
> linked_ptr? We added ScopedVector before we had linked_ptr, which is a more
> scalable way of doing ownership with STL (since you can use it with anything
and
> it handles the edge cases).

Powered by Google App Engine
This is Rietveld 408576698