@@ -308,9 +308,9 @@ public:
308
308
_LIBCPP_INLINE_VISIBILITY
309
309
__hash_iterator& operator =(const __hash_iterator& __i)
310
310
{
311
- if (this != _VSTD::addressof ( __i) )
311
+ if (this != & __i)
312
312
{
313
- __get_db ()->__iterator_copy (this , _VSTD::addressof ( __i) );
313
+ __get_db ()->__iterator_copy (this , & __i);
314
314
__node_ = __i.__node_ ;
315
315
}
316
316
return *this ;
@@ -406,7 +406,7 @@ public:
406
406
: __node_(__x.__node_)
407
407
{
408
408
#if _LIBCPP_DEBUG_LEVEL == 2
409
- __get_db ()->__iterator_copy (this , _VSTD::addressof ( __x) );
409
+ __get_db ()->__iterator_copy (this , & __x);
410
410
#endif
411
411
}
412
412
@@ -415,7 +415,7 @@ public:
415
415
__hash_const_iterator (const __hash_const_iterator& __i)
416
416
: __node_(__i.__node_)
417
417
{
418
- __get_db ()->__iterator_copy (this , _VSTD::addressof ( __i) );
418
+ __get_db ()->__iterator_copy (this , & __i);
419
419
}
420
420
421
421
_LIBCPP_INLINE_VISIBILITY
@@ -427,9 +427,9 @@ public:
427
427
_LIBCPP_INLINE_VISIBILITY
428
428
__hash_const_iterator& operator =(const __hash_const_iterator& __i)
429
429
{
430
- if (this != _VSTD::addressof ( __i) )
430
+ if (this != & __i)
431
431
{
432
- __get_db ()->__iterator_copy (this , _VSTD::addressof ( __i) );
432
+ __get_db ()->__iterator_copy (this , & __i);
433
433
__node_ = __i.__node_ ;
434
434
}
435
435
return *this ;
@@ -523,7 +523,7 @@ public:
523
523
__bucket_(__i.__bucket_),
524
524
__bucket_count_(__i.__bucket_count_)
525
525
{
526
- __get_db ()->__iterator_copy (this , _VSTD::addressof ( __i) );
526
+ __get_db ()->__iterator_copy (this , & __i);
527
527
}
528
528
529
529
_LIBCPP_INLINE_VISIBILITY
@@ -535,9 +535,9 @@ public:
535
535
_LIBCPP_INLINE_VISIBILITY
536
536
__hash_local_iterator& operator =(const __hash_local_iterator& __i)
537
537
{
538
- if (this != _VSTD::addressof ( __i) )
538
+ if (this != & __i)
539
539
{
540
- __get_db ()->__iterator_copy (this , _VSTD::addressof ( __i) );
540
+ __get_db ()->__iterator_copy (this , & __i);
541
541
__node_ = __i.__node_ ;
542
542
__bucket_ = __i.__bucket_ ;
543
543
__bucket_count_ = __i.__bucket_count_ ;
@@ -655,7 +655,7 @@ public:
655
655
__bucket_count_(__x.__bucket_count_)
656
656
{
657
657
#if _LIBCPP_DEBUG_LEVEL == 2
658
- __get_db ()->__iterator_copy (this , _VSTD::addressof ( __x) );
658
+ __get_db ()->__iterator_copy (this , & __x);
659
659
#endif
660
660
}
661
661
@@ -666,7 +666,7 @@ public:
666
666
__bucket_(__i.__bucket_),
667
667
__bucket_count_(__i.__bucket_count_)
668
668
{
669
- __get_db ()->__iterator_copy (this , _VSTD::addressof ( __i) );
669
+ __get_db ()->__iterator_copy (this , & __i);
670
670
}
671
671
672
672
_LIBCPP_INLINE_VISIBILITY
@@ -678,9 +678,9 @@ public:
678
678
_LIBCPP_INLINE_VISIBILITY
679
679
__hash_const_local_iterator& operator =(const __hash_const_local_iterator& __i)
680
680
{
681
- if (this != _VSTD::addressof ( __i) )
681
+ if (this != & __i)
682
682
{
683
- __get_db ()->__iterator_copy (this , _VSTD::addressof ( __i) );
683
+ __get_db ()->__iterator_copy (this , & __i);
684
684
__node_ = __i.__node_ ;
685
685
__bucket_ = __i.__bucket_ ;
686
686
__bucket_count_ = __i.__bucket_count_ ;
@@ -1615,7 +1615,7 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::__move_assign(
1615
1615
__u.size () = 0 ;
1616
1616
}
1617
1617
#if _LIBCPP_DEBUG_LEVEL == 2
1618
- __get_db ()->swap (this , _VSTD::addressof ( __u) );
1618
+ __get_db ()->swap (this , & __u);
1619
1619
#endif
1620
1620
}
1621
1621
@@ -2021,7 +2021,7 @@ typename __hash_table<_Tp, _Hash, _Equal, _Alloc>::iterator
2021
2021
__hash_table<_Tp, _Hash, _Equal, _Alloc>::__node_insert_multi (
2022
2022
const_iterator __p, __node_pointer __cp)
2023
2023
{
2024
- _LIBCPP_DEBUG_ASSERT (__get_const_db ()->__find_c_from_i (_VSTD::addressof ( __p) ) == this ,
2024
+ _LIBCPP_DEBUG_ASSERT (__get_const_db ()->__find_c_from_i (& __p) == this ,
2025
2025
" unordered container::emplace_hint(const_iterator, args...) called with an iterator not"
2026
2026
" referring to this unordered container" );
2027
2027
if (__p != end () && key_eq ()(*__p, __cp->__value_ ))
@@ -2148,7 +2148,7 @@ typename __hash_table<_Tp, _Hash, _Equal, _Alloc>::iterator
2148
2148
__hash_table<_Tp, _Hash, _Equal, _Alloc>::__emplace_hint_multi (
2149
2149
const_iterator __p, _Args&&... __args)
2150
2150
{
2151
- _LIBCPP_DEBUG_ASSERT (__get_const_db ()->__find_c_from_i (_VSTD::addressof ( __p) ) == this ,
2151
+ _LIBCPP_DEBUG_ASSERT (__get_const_db ()->__find_c_from_i (& __p) == this ,
2152
2152
" unordered container::emplace_hint(const_iterator, args...) called with an iterator not"
2153
2153
" referring to this unordered container" );
2154
2154
__node_holder __h = __construct_node (_VSTD::forward<_Args>(__args)...);
@@ -2472,7 +2472,7 @@ typename __hash_table<_Tp, _Hash, _Equal, _Alloc>::iterator
2472
2472
__hash_table<_Tp, _Hash, _Equal, _Alloc>::erase (const_iterator __p)
2473
2473
{
2474
2474
__next_pointer __np = __p.__node_ ;
2475
- _LIBCPP_DEBUG_ASSERT (__get_const_db ()->__find_c_from_i (_VSTD::addressof ( __p) ) == this ,
2475
+ _LIBCPP_DEBUG_ASSERT (__get_const_db ()->__find_c_from_i (& __p) == this ,
2476
2476
" unordered container erase(iterator) called with an iterator not"
2477
2477
" referring to this container" );
2478
2478
_LIBCPP_DEBUG_ASSERT (__p != end (),
@@ -2492,10 +2492,10 @@ typename __hash_table<_Tp, _Hash, _Equal, _Alloc>::iterator
2492
2492
__hash_table<_Tp, _Hash, _Equal, _Alloc>::erase (const_iterator __first,
2493
2493
const_iterator __last)
2494
2494
{
2495
- _LIBCPP_DEBUG_ASSERT (__get_const_db ()->__find_c_from_i (_VSTD::addressof ( __first) ) == this ,
2495
+ _LIBCPP_DEBUG_ASSERT (__get_const_db ()->__find_c_from_i (& __first) == this ,
2496
2496
" unordered container::erase(iterator, iterator) called with an iterator not"
2497
2497
" referring to this container" );
2498
- _LIBCPP_DEBUG_ASSERT (__get_const_db ()->__find_c_from_i (_VSTD::addressof ( __last) ) == this ,
2498
+ _LIBCPP_DEBUG_ASSERT (__get_const_db ()->__find_c_from_i (& __last) == this ,
2499
2499
" unordered container::erase(iterator, iterator) called with an iterator not"
2500
2500
" referring to this container" );
2501
2501
for (const_iterator __p = __first; __first != __last; __p = __first)
@@ -2727,7 +2727,7 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::swap(__hash_table& __u)
2727
2727
__u.__bucket_list_ [__constrain_hash (__u.__p1_ .first ().__next_ ->__hash (), __u.bucket_count ())] =
2728
2728
__u.__p1_ .first ().__ptr ();
2729
2729
#if _LIBCPP_DEBUG_LEVEL == 2
2730
- __get_db ()->swap (this , _VSTD::addressof ( __u) );
2730
+ __get_db ()->swap (this , & __u);
2731
2731
#endif
2732
2732
}
2733
2733
0 commit comments