@@ -668,11 +668,11 @@ public:
668
668
using const_reverse_iterator = _STD reverse_iterator<const_iterator>;
669
669
670
670
_CONSTEXPR20 vector() noexcept(is_nothrow_default_constructible_v<_Alty>) : _Mypair(_Zero_then_variadic_args_t{}) {
671
- _Mypair._Myval2._Alloc_proxy(_GET_PROXY_ALLOCATOR(_Alty, _Getal()));
671
+ _Mypair._Myval2._Alloc_proxy(_STD _Get_proxy_allocator( _Getal()));
672
672
}
673
673
674
674
_CONSTEXPR20 explicit vector(const _Alloc& _Al) noexcept : _Mypair(_One_then_variadic_args_t{}, _Al) {
675
- _Mypair._Myval2._Alloc_proxy(_GET_PROXY_ALLOCATOR(_Alty, _Getal()));
675
+ _Mypair._Myval2._Alloc_proxy(_STD _Get_proxy_allocator( _Getal()));
676
676
}
677
677
678
678
_CONSTEXPR20 explicit vector(_CRT_GUARDOVERFLOW const size_type _Count, const _Alloc& _Al = _Alloc())
@@ -705,7 +705,7 @@ public:
705
705
_Construct_n(_Count, _STD move(_UFirst), _STD move(_ULast));
706
706
#endif // _HAS_CXX20
707
707
} else {
708
- auto&& _Alproxy = _GET_PROXY_ALLOCATOR(_Alty, _Getal());
708
+ auto _Alproxy = _STD _Get_proxy_allocator( _Getal());
709
709
_Container_proxy_ptr<_Alty> _Proxy(_Alproxy, _Mypair._Myval2);
710
710
_Tidy_guard<vector> _Guard{this};
711
711
@@ -730,7 +730,7 @@ public:
730
730
const auto _Count = _Convert_size<size_type>(_Length);
731
731
_Construct_n(_Count, _RANGES _Ubegin(_Range), _RANGES _Uend(_Range));
732
732
} else {
733
- auto&& _Alproxy = _GET_PROXY_ALLOCATOR(_Alty, _Getal());
733
+ auto _Alproxy = _STD _Get_proxy_allocator( _Getal());
734
734
_Container_proxy_ptr<_Alty> _Proxy(_Alproxy, _Mypair._Myval2);
735
735
_Tidy_guard<vector> _Guard{this};
736
736
@@ -761,15 +761,15 @@ public:
761
761
_STD exchange(_Right._Mypair._Myval2._Myfirst, nullptr),
762
762
_STD exchange(_Right._Mypair._Myval2._Mylast, nullptr),
763
763
_STD exchange(_Right._Mypair._Myval2._Myend, nullptr)) {
764
- _Mypair._Myval2._Alloc_proxy(_GET_PROXY_ALLOCATOR(_Alty, _Getal()));
764
+ _Mypair._Myval2._Alloc_proxy(_STD _Get_proxy_allocator( _Getal()));
765
765
_Mypair._Myval2._Swap_proxy_and_iterators(_Right._Mypair._Myval2);
766
766
}
767
767
768
768
_CONSTEXPR20 vector(vector&& _Right, const _Identity_t<_Alloc>& _Al_)
769
769
noexcept(_Alty_traits::is_always_equal::value) // strengthened
770
770
: _Mypair(_One_then_variadic_args_t{}, _Al_) {
771
771
_Alty& _Al = _Getal();
772
- auto&& _Alproxy = _GET_PROXY_ALLOCATOR(_Alty, _Al);
772
+ auto _Alproxy = _STD _Get_proxy_allocator( _Al);
773
773
auto& _My_data = _Mypair._Myval2;
774
774
auto& _Right_data = _Right._Mypair._Myval2;
775
775
_Container_proxy_ptr<_Alty> _Proxy(_Alproxy, _My_data);
@@ -816,7 +816,7 @@ public:
816
816
if constexpr (_Pocma_val == _Pocma_values::_Propagate_allocators) {
817
817
if (_Al != _Right_al) {
818
818
// intentionally slams into noexcept on OOM, TRANSITION, VSO-466800
819
- _Mypair._Myval2._Reload_proxy(_GET_PROXY_ALLOCATOR(_Alty, _Al), _GET_PROXY_ALLOCATOR(_Alty, _Right_al));
819
+ _Mypair._Myval2._Reload_proxy(_STD _Get_proxy_allocator( _Al), _STD _Get_proxy_allocator( _Right_al));
820
820
}
821
821
}
822
822
#endif // _ITERATOR_DEBUG_LEVEL != 0
@@ -829,7 +829,7 @@ public:
829
829
_CONSTEXPR20 ~vector() noexcept {
830
830
_Tidy();
831
831
#if _ITERATOR_DEBUG_LEVEL != 0
832
- auto&& _Alproxy = _GET_PROXY_ALLOCATOR(_Alty, _Getal());
832
+ auto _Alproxy = _STD _Get_proxy_allocator( _Getal());
833
833
_Delete_plain_internal(_Alproxy, _STD exchange(_Mypair._Myval2._Myproxy, nullptr));
834
834
#endif // _ITERATOR_DEBUG_LEVEL != 0
835
835
}
@@ -1530,7 +1530,7 @@ public:
1530
1530
if constexpr (_Choose_pocca_v<_Alty>) {
1531
1531
if (_Al != _Right_al) {
1532
1532
_Tidy();
1533
- _Mypair._Myval2._Reload_proxy(_GET_PROXY_ALLOCATOR(_Alty, _Al), _GET_PROXY_ALLOCATOR(_Alty, _Right_al));
1533
+ _Mypair._Myval2._Reload_proxy(_STD _Get_proxy_allocator( _Al), _STD _Get_proxy_allocator( _Right_al));
1534
1534
}
1535
1535
}
1536
1536
@@ -2104,9 +2104,9 @@ private:
2104
2104
// 1-arg -> value-construction, e.g. vector(5)
2105
2105
// 2-arg -> fill, e.g. vector(5, "meow")
2106
2106
// 3-arg -> sized range construction, e.g. vector{"Hello", "Fluffy", "World"}
2107
- auto& _Al = _Getal();
2108
- auto&& _Alproxy = _GET_PROXY_ALLOCATOR(_Alty, _Al);
2109
- auto& _My_data = _Mypair._Myval2;
2107
+ auto& _Al = _Getal();
2108
+ auto _Alproxy = _STD _Get_proxy_allocator( _Al);
2109
+ auto& _My_data = _Mypair._Myval2;
2110
2110
_Container_proxy_ptr<_Alty> _Proxy(_Alproxy, _My_data);
2111
2111
if (_Count != 0) {
2112
2112
_Buy_nonzero(_Count);
@@ -2816,35 +2816,35 @@ public:
2816
2816
using size_type = typename _Alvbase_traits::size_type;
2817
2817
2818
2818
_CONSTEXPR20 _Vb_val() noexcept(is_nothrow_default_constructible_v<_Vectype>) : _Myvec(), _Mysize(0) {
2819
- this->_Alloc_proxy(_GET_PROXY_ALLOCATOR(_Alvbase, _Getal()));
2819
+ this->_Alloc_proxy(_STD _Get_proxy_allocator( _Getal()));
2820
2820
}
2821
2821
2822
2822
_CONSTEXPR20 _Vb_val(const _Alloc& _Al) noexcept : _Myvec(static_cast<_Alvbase>(_Al)), _Mysize(0) {
2823
- this->_Alloc_proxy(_GET_PROXY_ALLOCATOR(_Alvbase, _Getal()));
2823
+ this->_Alloc_proxy(_STD _Get_proxy_allocator( _Getal()));
2824
2824
}
2825
2825
2826
2826
_CONSTEXPR20 _Vb_val(size_type _Count, const bool& _Val)
2827
2827
: _Myvec(_Nw(_Count), static_cast<_Vbase>(_Val ? -1 : 0)), _Mysize(0) {
2828
- this->_Alloc_proxy(_GET_PROXY_ALLOCATOR(_Alvbase, _Getal()));
2828
+ this->_Alloc_proxy(_STD _Get_proxy_allocator( _Getal()));
2829
2829
}
2830
2830
2831
2831
_CONSTEXPR20 _Vb_val(size_type _Count, const bool& _Val, const _Alloc& _Al)
2832
2832
: _Myvec(_Nw(_Count), static_cast<_Vbase>(_Val ? -1 : 0), static_cast<_Alvbase>(_Al)), _Mysize(0) {
2833
- this->_Alloc_proxy(_GET_PROXY_ALLOCATOR(_Alvbase, _Getal()));
2833
+ this->_Alloc_proxy(_STD _Get_proxy_allocator( _Getal()));
2834
2834
}
2835
2835
2836
2836
_CONSTEXPR20 _Vb_val(const _Vb_val& _Right) : _Myvec(_Right._Myvec), _Mysize(_Right._Mysize) {
2837
- this->_Alloc_proxy(_GET_PROXY_ALLOCATOR(_Alvbase, _Getal()));
2837
+ this->_Alloc_proxy(_STD _Get_proxy_allocator( _Getal()));
2838
2838
}
2839
2839
2840
2840
_CONSTEXPR20 _Vb_val(const _Vb_val& _Right, const _Alloc& _Al)
2841
2841
: _Myvec(_Right._Myvec, static_cast<_Alvbase>(_Al)), _Mysize(_Right._Mysize) {
2842
- this->_Alloc_proxy(_GET_PROXY_ALLOCATOR(_Alvbase, _Getal()));
2842
+ this->_Alloc_proxy(_STD _Get_proxy_allocator( _Getal()));
2843
2843
}
2844
2844
2845
2845
_CONSTEXPR20 _Vb_val(_Vb_val&& _Right) noexcept(is_nothrow_move_constructible_v<_Vectype>)
2846
2846
: _Myvec(_STD move(_Right._Myvec)), _Mysize(_STD exchange(_Right._Mysize, size_type{0})) {
2847
- this->_Alloc_proxy(_GET_PROXY_ALLOCATOR(_Alvbase, _Getal()));
2847
+ this->_Alloc_proxy(_STD _Get_proxy_allocator( _Getal()));
2848
2848
}
2849
2849
2850
2850
_CONSTEXPR20 _Vb_val(_Vb_val&& _Right, const _Alloc& _Al)
@@ -2855,13 +2855,13 @@ public:
2855
2855
_Right._Mysize = 0;
2856
2856
}
2857
2857
2858
- this->_Alloc_proxy(_GET_PROXY_ALLOCATOR(_Alvbase, _Getal()));
2858
+ this->_Alloc_proxy(_STD _Get_proxy_allocator( _Getal()));
2859
2859
}
2860
2860
2861
2861
_CONSTEXPR20 ~_Vb_val() noexcept {
2862
2862
#if _ITERATOR_DEBUG_LEVEL != 0
2863
2863
this->_Orphan_all();
2864
- auto&& _Alproxy = _GET_PROXY_ALLOCATOR(_Alvbase, this->_Getal());
2864
+ auto _Alproxy = _STD _Get_proxy_allocator( this->_Getal());
2865
2865
_Delete_plain_internal(_Alproxy, _STD exchange(this->_Myproxy, nullptr));
2866
2866
#endif // _ITERATOR_DEBUG_LEVEL != 0
2867
2867
0 commit comments