| OLD | NEW |
| 1 // -*- C++ -*- | 1 // -*- C++ -*- |
| 2 //===-------------------------- unordered_set -----------------------------===// | 2 //===-------------------------- unordered_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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 | 325 |
| 326 #include <__debug> | 326 #include <__debug> |
| 327 | 327 |
| 328 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) | 328 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
| 329 #pragma GCC system_header | 329 #pragma GCC system_header |
| 330 #endif | 330 #endif |
| 331 | 331 |
| 332 _LIBCPP_BEGIN_NAMESPACE_STD | 332 _LIBCPP_BEGIN_NAMESPACE_STD |
| 333 | 333 |
| 334 template <class _Value, class _Hash = hash<_Value>, class _Pred = equal_to<_Valu
e>, | 334 template <class _Value, class _Hash = hash<_Value>, class _Pred = equal_to<_Valu
e>, |
| 335 class _Alloc = allocator<_Value> > | 335 class _Alloc = counting_allocator<_Value, allocation_group::unordered_
set> > |
| 336 class _LIBCPP_TYPE_VIS_ONLY unordered_set | 336 class _LIBCPP_TYPE_VIS_ONLY unordered_set |
| 337 { | 337 { |
| 338 public: | 338 public: |
| 339 // types | 339 // types |
| 340 typedef _Value key_type; | 340 typedef _Value key_type; |
| 341 typedef key_type value_typ
e; | 341 typedef key_type value_typ
e; |
| 342 typedef _Hash hasher; | 342 typedef _Hash hasher; |
| 343 typedef _Pred key_equal
; | 343 typedef _Pred key_equal
; |
| 344 typedef _Alloc allocator
_type; | 344 typedef _Alloc allocator
_type; |
| 345 typedef value_type& reference
; | 345 typedef value_type& reference
; |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 template <class _Value, class _Hash, class _Pred, class _Alloc> | 860 template <class _Value, class _Hash, class _Pred, class _Alloc> |
| 861 inline _LIBCPP_INLINE_VISIBILITY | 861 inline _LIBCPP_INLINE_VISIBILITY |
| 862 bool | 862 bool |
| 863 operator!=(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, | 863 operator!=(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, |
| 864 const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) | 864 const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) |
| 865 { | 865 { |
| 866 return !(__x == __y); | 866 return !(__x == __y); |
| 867 } | 867 } |
| 868 | 868 |
| 869 template <class _Value, class _Hash = hash<_Value>, class _Pred = equal_to<_Valu
e>, | 869 template <class _Value, class _Hash = hash<_Value>, class _Pred = equal_to<_Valu
e>, |
| 870 class _Alloc = allocator<_Value> > | 870 class _Alloc = counting_allocator<_Value, allocation_group::unordered_
multiset> > |
| 871 class _LIBCPP_TYPE_VIS_ONLY unordered_multiset | 871 class _LIBCPP_TYPE_VIS_ONLY unordered_multiset |
| 872 { | 872 { |
| 873 public: | 873 public: |
| 874 // types | 874 // types |
| 875 typedef _Value key_type; | 875 typedef _Value key_type; |
| 876 typedef key_type value_typ
e; | 876 typedef key_type value_typ
e; |
| 877 typedef _Hash hasher; | 877 typedef _Hash hasher; |
| 878 typedef _Pred key_equal
; | 878 typedef _Pred key_equal
; |
| 879 typedef _Alloc allocator
_type; | 879 typedef _Alloc allocator
_type; |
| 880 typedef value_type& reference
; | 880 typedef value_type& reference
; |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1370 bool | 1370 bool |
| 1371 operator!=(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, | 1371 operator!=(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, |
| 1372 const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) | 1372 const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) |
| 1373 { | 1373 { |
| 1374 return !(__x == __y); | 1374 return !(__x == __y); |
| 1375 } | 1375 } |
| 1376 | 1376 |
| 1377 _LIBCPP_END_NAMESPACE_STD | 1377 _LIBCPP_END_NAMESPACE_STD |
| 1378 | 1378 |
| 1379 #endif // _LIBCPP_UNORDERED_SET | 1379 #endif // _LIBCPP_UNORDERED_SET |
| OLD | NEW |