|
20 | 20 | #include <utility>
|
21 | 21 |
|
22 | 22 | #include <__undef_min_max>
|
23 |
| -#include <__undef___deallocate> |
24 | 23 |
|
25 | 24 | #include <__debug>
|
26 | 25 |
|
@@ -1321,7 +1320,7 @@ private:
|
1321 | 1320 | void __move_assign_alloc(__hash_table&, false_type) _NOEXCEPT {}
|
1322 | 1321 | #endif // _LIBCPP_CXX03_LANG
|
1323 | 1322 |
|
1324 |
| - void __deallocate(__next_pointer __np) _NOEXCEPT; |
| 1323 | + void __deallocate_node(__next_pointer __np) _NOEXCEPT; |
1325 | 1324 | __next_pointer __detach() _NOEXCEPT;
|
1326 | 1325 |
|
1327 | 1326 | template <class, class, class, class, class> friend class _LIBCPP_TEMPLATE_VIS unordered_map;
|
@@ -1454,7 +1453,7 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::~__hash_table()
|
1454 | 1453 | "Predicate must be copy-constructible.");
|
1455 | 1454 | static_assert((is_copy_constructible<hasher>::value),
|
1456 | 1455 | "Hasher must be copy-constructible.");
|
1457 |
| - __deallocate(__p1_.first().__next_); |
| 1456 | + __deallocate_node(__p1_.first().__next_); |
1458 | 1457 | #if _LIBCPP_DEBUG_LEVEL >= 2
|
1459 | 1458 | __get_db()->__erase_c(this);
|
1460 | 1459 | #endif
|
@@ -1492,7 +1491,7 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::operator=(const __hash_table& __u)
|
1492 | 1491 |
|
1493 | 1492 | template <class _Tp, class _Hash, class _Equal, class _Alloc>
|
1494 | 1493 | void
|
1495 |
| -__hash_table<_Tp, _Hash, _Equal, _Alloc>::__deallocate(__next_pointer __np) |
| 1494 | +__hash_table<_Tp, _Hash, _Equal, _Alloc>::__deallocate_node(__next_pointer __np) |
1496 | 1495 | _NOEXCEPT
|
1497 | 1496 | {
|
1498 | 1497 | __node_allocator& __na = __node_alloc();
|
@@ -1599,11 +1598,11 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::__move_assign(
|
1599 | 1598 | }
|
1600 | 1599 | catch (...)
|
1601 | 1600 | {
|
1602 |
| - __deallocate(__cache); |
| 1601 | + __deallocate_node(__cache); |
1603 | 1602 | throw;
|
1604 | 1603 | }
|
1605 | 1604 | #endif // _LIBCPP_NO_EXCEPTIONS
|
1606 |
| - __deallocate(__cache); |
| 1605 | + __deallocate_node(__cache); |
1607 | 1606 | }
|
1608 | 1607 | const_iterator __i = __u.begin();
|
1609 | 1608 | while (__u.size() != 0)
|
@@ -1661,11 +1660,11 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::__assign_unique(_InputIterator __first
|
1661 | 1660 | }
|
1662 | 1661 | catch (...)
|
1663 | 1662 | {
|
1664 |
| - __deallocate(__cache); |
| 1663 | + __deallocate_node(__cache); |
1665 | 1664 | throw;
|
1666 | 1665 | }
|
1667 | 1666 | #endif // _LIBCPP_NO_EXCEPTIONS
|
1668 |
| - __deallocate(__cache); |
| 1667 | + __deallocate_node(__cache); |
1669 | 1668 | }
|
1670 | 1669 | for (; __first != __last; ++__first)
|
1671 | 1670 | __insert_unique(*__first);
|
@@ -1701,11 +1700,11 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::__assign_multi(_InputIterator __first,
|
1701 | 1700 | }
|
1702 | 1701 | catch (...)
|
1703 | 1702 | {
|
1704 |
| - __deallocate(__cache); |
| 1703 | + __deallocate_node(__cache); |
1705 | 1704 | throw;
|
1706 | 1705 | }
|
1707 | 1706 | #endif // _LIBCPP_NO_EXCEPTIONS
|
1708 |
| - __deallocate(__cache); |
| 1707 | + __deallocate_node(__cache); |
1709 | 1708 | }
|
1710 | 1709 | for (; __first != __last; ++__first)
|
1711 | 1710 | __insert_multi(_NodeTypes::__get_value(*__first));
|
@@ -1765,7 +1764,7 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::clear() _NOEXCEPT
|
1765 | 1764 | {
|
1766 | 1765 | if (size() > 0)
|
1767 | 1766 | {
|
1768 |
| - __deallocate(__p1_.first().__next_); |
| 1767 | + __deallocate_node(__p1_.first().__next_); |
1769 | 1768 | __p1_.first().__next_ = nullptr;
|
1770 | 1769 | size_type __bc = bucket_count();
|
1771 | 1770 | for (size_type __i = 0; __i < __bc; ++__i)
|
|
0 commit comments