diff options
author | mikhnenko <[email protected]> | 2023-10-16 00:19:28 +0300 |
---|---|---|
committer | mikhnenko <[email protected]> | 2023-10-16 00:40:55 +0300 |
commit | 03562c20be10d96a02cbd83773bf2f3a17c70142 (patch) | |
tree | 3762df6744c5c017b011997a08aeb20d2f92f1a5 /contrib/libs/cxxsupp/libcxx/include/unordered_map | |
parent | 6851965da19965a2680cfea6815b486fb14e739d (diff) |
Revert commit rXXXXXX, Upd libc++ to 18 May 4ac0589122830fc6d90e0ea091300c0b979a42dc
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/include/unordered_map')
-rw-r--r-- | contrib/libs/cxxsupp/libcxx/include/unordered_map | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/include/unordered_map b/contrib/libs/cxxsupp/libcxx/include/unordered_map index e5741b05466..a31c2c6ddea 100644 --- a/contrib/libs/cxxsupp/libcxx/include/unordered_map +++ b/contrib/libs/cxxsupp/libcxx/include/unordered_map @@ -1693,7 +1693,9 @@ unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map( : __table_(_VSTD::move(__u.__table_)) { _VSTD::__debug_db_insert_c(this); - std::__debug_db_swap(this, std::addressof(__u)); +#if _LIBCPP_DEBUG_LEVEL == 2 + __get_db()->swap(this, _VSTD::addressof(__u)); +#endif } template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> @@ -1710,8 +1712,10 @@ unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map( __u.__table_.remove((__i++).__i_)->__value_.__move()); } } +#if _LIBCPP_DEBUG_LEVEL == 2 else - std::__debug_db_swap(this, std::addressof(__u)); + __get_db()->swap(this, _VSTD::addressof(__u)); +#endif } template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> @@ -2465,7 +2469,9 @@ unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_multimap( : __table_(_VSTD::move(__u.__table_)) { _VSTD::__debug_db_insert_c(this); - std::__debug_db_swap(this, std::addressof(__u)); +#if _LIBCPP_DEBUG_LEVEL == 2 + __get_db()->swap(this, _VSTD::addressof(__u)); +#endif } template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> @@ -2483,8 +2489,10 @@ unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_multimap( __u.__table_.remove((__i++).__i_)->__value_.__move()); } } +#if _LIBCPP_DEBUG_LEVEL == 2 else - std::__debug_db_swap(this, std::addressof(__u)); + __get_db()->swap(this, _VSTD::addressof(__u)); +#endif } template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> |