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

Side by Side Diff: include/set

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 unified diff | Download patch
« no previous file with comments | « include/new ('k') | include/string » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // -*- C++ -*- 1 // -*- C++ -*-
2 //===---------------------------- set -------------------------------------===// 2 //===---------------------------- set -------------------------------------===//
3 // 3 //
4 // The LLVM Compiler Infrastructure 4 // The LLVM Compiler Infrastructure
5 // 5 //
6 // This file is dual licensed under the MIT and the University of Illinois Open 6 // This file is dual licensed under the MIT and the University of Illinois Open
7 // Source Licenses. See LICENSE.TXT for details. 7 // Source Licenses. See LICENSE.TXT for details.
8 // 8 //
9 //===----------------------------------------------------------------------===// 9 //===----------------------------------------------------------------------===//
10 10
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 #include <__tree> 389 #include <__tree>
390 #include <functional> 390 #include <functional>
391 391
392 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 392 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
393 #pragma GCC system_header 393 #pragma GCC system_header
394 #endif 394 #endif
395 395
396 _LIBCPP_BEGIN_NAMESPACE_STD 396 _LIBCPP_BEGIN_NAMESPACE_STD
397 397
398 template <class _Key, class _Compare = less<_Key>, 398 template <class _Key, class _Compare = less<_Key>,
399 class _Allocator = allocator<_Key> > 399 class _Allocator = counting_allocator<_Key, allocation_group::set> >
400 class _LIBCPP_TYPE_VIS_ONLY set 400 class _LIBCPP_TYPE_VIS_ONLY set
401 { 401 {
402 public: 402 public:
403 // types: 403 // types:
404 typedef _Key key_type; 404 typedef _Key key_type;
405 typedef key_type value_type; 405 typedef key_type value_type;
406 typedef _Compare key_compare; 406 typedef _Compare key_compare;
407 typedef key_compare value_compare; 407 typedef key_compare value_compare;
408 typedef _Allocator allocator_type; 408 typedef _Allocator allocator_type;
409 typedef value_type& reference; 409 typedef value_type& reference;
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 inline _LIBCPP_INLINE_VISIBILITY 802 inline _LIBCPP_INLINE_VISIBILITY
803 void 803 void
804 swap(set<_Key, _Compare, _Allocator>& __x, 804 swap(set<_Key, _Compare, _Allocator>& __x,
805 set<_Key, _Compare, _Allocator>& __y) 805 set<_Key, _Compare, _Allocator>& __y)
806 _NOEXCEPT_(_NOEXCEPT_(__x.swap(__y))) 806 _NOEXCEPT_(_NOEXCEPT_(__x.swap(__y)))
807 { 807 {
808 __x.swap(__y); 808 __x.swap(__y);
809 } 809 }
810 810
811 template <class _Key, class _Compare = less<_Key>, 811 template <class _Key, class _Compare = less<_Key>,
812 class _Allocator = allocator<_Key> > 812 class _Allocator = counting_allocator<_Key, allocation_group::multiset > >
813 class _LIBCPP_TYPE_VIS_ONLY multiset 813 class _LIBCPP_TYPE_VIS_ONLY multiset
814 { 814 {
815 public: 815 public:
816 // types: 816 // types:
817 typedef _Key key_type; 817 typedef _Key key_type;
818 typedef key_type value_type; 818 typedef key_type value_type;
819 typedef _Compare key_compare; 819 typedef _Compare key_compare;
820 typedef key_compare value_compare; 820 typedef key_compare value_compare;
821 typedef _Allocator allocator_type; 821 typedef _Allocator allocator_type;
822 typedef value_type& reference; 822 typedef value_type& reference;
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 swap(multiset<_Key, _Compare, _Allocator>& __x, 1216 swap(multiset<_Key, _Compare, _Allocator>& __x,
1217 multiset<_Key, _Compare, _Allocator>& __y) 1217 multiset<_Key, _Compare, _Allocator>& __y)
1218 _NOEXCEPT_(_NOEXCEPT_(__x.swap(__y))) 1218 _NOEXCEPT_(_NOEXCEPT_(__x.swap(__y)))
1219 { 1219 {
1220 __x.swap(__y); 1220 __x.swap(__y);
1221 } 1221 }
1222 1222
1223 _LIBCPP_END_NAMESPACE_STD 1223 _LIBCPP_END_NAMESPACE_STD
1224 1224
1225 #endif // _LIBCPP_SET 1225 #endif // _LIBCPP_SET
OLDNEW
« no previous file with comments | « include/new ('k') | include/string » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698