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

Unified Diff: base/containers/flat_set.h

Issue 2572593002: [counting_allocator] Chrome changes.
Patch Set: Surface max_size; instrument flat_set. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/allocator/allocator_shim_override_cpp_symbols.h ('k') | base/containers/hash_tables.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/containers/flat_set.h
diff --git a/base/containers/flat_set.h b/base/containers/flat_set.h
index aa7e52eddbdfca8758ae32a22479ccccd046f7cd..5b6c9ed0fdbbd9737c130ebb0dfd004aa833fce9 100644
--- a/base/containers/flat_set.h
+++ b/base/containers/flat_set.h
@@ -85,7 +85,7 @@ template <class Key, class Compare = std::less<Key>>
// Requires: Key is Movable, Compare is a StrictWeakOrdering on Key.
class flat_set {
private:
- using underlying_type = std::vector<Key>;
+ using underlying_type = std::vector<Key, std::counting_allocator<Key, std::allocation_group::base_flat_set>>;
public:
// --------------------------------------------------------------------------
« no previous file with comments | « base/allocator/allocator_shim_override_cpp_symbols.h ('k') | base/containers/hash_tables.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698