diff options
| author | mikhnenko <[email protected]> | 2023-10-17 19:20:32 +0300 |
|---|---|---|
| committer | mikhnenko <[email protected]> | 2023-10-17 20:03:07 +0300 |
| commit | 679d3abe25cfc5fc1a8a781a18add27e8a0ee677 (patch) | |
| tree | 4e71eb2a49c2d53517f898d318a7e1c66df10e11 /contrib/libs/cxxsupp/libcxx/include/__hash_table | |
| parent | cc1f2e5275032108b1e7e7410b858797b6c44ac8 (diff) | |
Upd libc++ to 18 May f0e61029506fd63bb300f2dbbd65ba792e4ef3a2
[libc++][P0943] Add stdatomic.h header.
[libc++] Implement ranges::is_partitioned
[libcxx] Reject month 0 in get_date/__get_month
[libc++] Mark tests that use check_assertion.h as requiring unix headers
[libcxx] [ci] Add a i386 Windows configuration to CI
[libcxx] [test] Narrow down an XFAIL for clang-cl configurations
[libcxx] [test] Extend the UNSUPPORTED lines in strong_order_long_dou…
[libcxx] [test] Fix max_size.pass.cpp for other Windows architectures
[libc++] Avoid a Microsoft SAL macro.
[libc++] Add a few _LIBCPP_ASSERTs in __tree
[libc++] Implement ranges::for_each{, _n}
[libc++] Refactor max_size.pass.cpp
[runtimes] Fix how we trigger CI
[libc++] Overhaul how we select the ABI library
[runtimes] [cmake] Fix -Werror detection in common build configs
[libc++] Mark <stdatomic.h> as requiring C++23
[libcxx] Switch __cxx_contention_t to int32_t on 32 bit AIX
[libc++] Remove __invalidate_all_iterators and replace the uses with …
[libc++] Add a few more debug wrapper functions
[libc++][ranges] Implement views::drop.
[libcxx] [test] Fix the nasty_macros test on Windows on ARM/ARM64
[libcxx] Remove static inline and make use of _LIBCPP_HIDE_FROM_ABI i…
[libcxx] random_device, use arc4random() on Solaris
[libc++][ranges] Implement views::single.
[libc++][ranges] Implement views::take.
[libc++] Improve std::to_chars for base != 10.
[lib++][doc] Fixes a link in the status paper.
[libc++] Simplify the string structures a bit more
[libc++][test] Verify std::views::drop and std::views::join are CPOs
[runtimes] Introduce object libraries
[libc++] Remove the legacy LIBCXX_LIBCPPABI_VERSION option
[libc++] Remove overly conservative error in <stdatomic.h>
[libc++] Introduce LIBCXX_LIBRARY_VERSION
[libcxx] [test] Add missing header for std::numeric_limits
[libcxx] [test] Include header for strverscmp
[runtimes] Default LIB*_HERMETIC_STATIC_LIBRARY to ON on Windows
[libc++][format] Adds a formattable concept.
[libc++][format] Adds formatter<charT[N], charT>.
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/include/__hash_table')
| -rw-r--r-- | contrib/libs/cxxsupp/libcxx/include/__hash_table | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/include/__hash_table b/contrib/libs/cxxsupp/libcxx/include/__hash_table index 605f13c3604..14f53429dee 100644 --- a/contrib/libs/cxxsupp/libcxx/include/__hash_table +++ b/contrib/libs/cxxsupp/libcxx/include/__hash_table @@ -1519,9 +1519,7 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::~__hash_table() #endif __deallocate_node(__p1_.first().__next_); -#if _LIBCPP_DEBUG_LEVEL == 2 - __get_db()->__erase_c(this); -#endif + std::__debug_db_erase_c(this); } template <class _Tp, class _Hash, class _Equal, class _Alloc> @@ -1624,9 +1622,7 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::__move_assign( __u.__p1_.first().__next_ = nullptr; __u.size() = 0; } -#if _LIBCPP_DEBUG_LEVEL == 2 - __get_db()->swap(this, _VSTD::addressof(__u)); -#endif + std::__debug_db_swap(this, std::addressof(__u)); } template <class _Tp, class _Hash, class _Equal, class _Alloc> @@ -2328,9 +2324,7 @@ template <class _Tp, class _Hash, class _Equal, class _Alloc> void __hash_table<_Tp, _Hash, _Equal, _Alloc>::__rehash(size_type __nbc) { -#if _LIBCPP_DEBUG_LEVEL == 2 - __get_db()->__invalidate_all(this); -#endif + std::__debug_db_invalidate_all(this); __pointer_allocator& __npa = __bucket_list_.get_deleter().__alloc(); __bucket_list_.reset(__nbc > 0 ? __pointer_alloc_traits::allocate(__npa, __nbc) : nullptr); @@ -2736,9 +2730,7 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::swap(__hash_table& __u) if (__u.size() > 0) __u.__bucket_list_[__constrain_hash(__u.__p1_.first().__next_->__hash(), __u.bucket_count())] = __u.__p1_.first().__ptr(); -#if _LIBCPP_DEBUG_LEVEL == 2 - __get_db()->swap(this, _VSTD::addressof(__u)); -#endif + std::__debug_db_swap(this, std::addressof(__u)); } template <class _Tp, class _Hash, class _Equal, class _Alloc> |
