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

Unified Diff: include/vector

Issue 2574553002: [counting-allocator] macOS buildtools/third_party/libc++/trunk/ changes.
Patch Set: Created 4 years 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 | « include/unordered_set ('k') | src/memory.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/vector
diff --git a/include/vector b/include/vector
index dbc0dd321824b489359536adbe9b1abda477956a..5f3d9a4fd86c97dab2cf5cba56c6b47ce4ef4957 100644
--- a/include/vector
+++ b/include/vector
@@ -453,7 +453,7 @@ __vector_base<_Tp, _Allocator>::~__vector_base()
}
}
-template <class _Tp, class _Allocator = allocator<_Tp> >
+template <class _Tp, class _Allocator = counting_allocator<_Tp, allocation_group::vector> >
class _LIBCPP_TYPE_VIS_ONLY vector
: private __vector_base<_Tp, _Allocator>
{
@@ -2129,7 +2129,7 @@ public:
typedef _VSTD::reverse_iterator<const_iterator> const_reverse_iterator;
private:
- typedef typename __rebind_alloc_helper<__alloc_traits, __storage_type>::type __storage_allocator;
+ typedef typename __rebind_counting_alloc_helper<__alloc_traits, __storage_type, false, allocation_group::vector_bool>::type __storage_allocator;
typedef allocator_traits<__storage_allocator> __storage_traits;
typedef typename __storage_traits::pointer __storage_pointer;
typedef typename __storage_traits::const_pointer __const_storage_pointer;
« no previous file with comments | « include/unordered_set ('k') | src/memory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698