@@ -1576,7 +1576,7 @@ vector<_Tp, _Allocator>::erase(const_iterator __position) {
15761576 __position != end (), " vector::erase(iterator) called with a non-dereferenceable iterator" );
15771577 difference_type __ps = __position - cbegin ();
15781578 pointer __p = this ->__begin_ + __ps;
1579- #if _LIBCPP_STD_VER >= 20
1579+ #if _LIBCPP_STD_VER >= 26
15801580 if constexpr (is_trivially_relocatable_v<_Tp> || is_nothrow_move_constructible_v<_Tp>) {
15811581 size_type __old_size = size ();
15821582 // destroy the element at __p
@@ -1599,7 +1599,7 @@ vector<_Tp, _Allocator>::erase(const_iterator __first, const_iterator __last) {
15991599 _LIBCPP_ASSERT_VALID_INPUT_RANGE (__first <= __last, " vector::erase(first, last) called with invalid range" );
16001600 pointer __p = this ->__begin_ + (__first - begin ());
16011601 if (__first != __last) {
1602- #if _LIBCPP_STD_VER >= 20
1602+ #if _LIBCPP_STD_VER >= 26
16031603 if constexpr (is_trivially_relocatable_v<_Tp> || is_nothrow_move_constructible_v<_Tp>) {
16041604 size_type __old_size = size ();
16051605 size_type __count = __last - __first;
@@ -1643,7 +1643,7 @@ vector<_Tp, _Allocator>::insert(const_iterator __position, const_reference __x)
16431643 if (__p == this ->__end_ ) {
16441644 __construct_one_at_end (__x);
16451645 } else {
1646- #if _LIBCPP_STD_VER >= 20
1646+ #if _LIBCPP_STD_VER >= 26
16471647 if constexpr (is_trivially_relocatable_v<_Tp> || is_nothrow_move_constructible_v<_Tp>) {
16481648 // Make space by trivially relocating everything
16491649 _ConstructTransaction __tx (*this , 1 );
@@ -1683,7 +1683,7 @@ vector<_Tp, _Allocator>::insert(const_iterator __position, value_type&& __x) {
16831683 if (__p == this ->__end_ ) {
16841684 __construct_one_at_end (std::move (__x));
16851685 } else {
1686- #if _LIBCPP_STD_VER >= 20
1686+ #if _LIBCPP_STD_VER >= 26
16871687 if constexpr (is_trivially_relocatable_v<_Tp> || is_nothrow_move_constructible_v<_Tp>) {
16881688 // Make space by trivially relocating everything
16891689 _ConstructTransaction __tx (*this , 1 );
@@ -1718,7 +1718,7 @@ vector<_Tp, _Allocator>::emplace(const_iterator __position, _Args&&... __args) {
17181718 if (__p == this ->__end_ ) {
17191719 __construct_one_at_end (std::forward<_Args>(__args)...);
17201720 } else {
1721- #if _LIBCPP_STD_VER >= 20
1721+ #if _LIBCPP_STD_VER >= 26
17221722 if constexpr (is_trivially_relocatable_v<_Tp> || is_nothrow_move_constructible_v<_Tp>) {
17231723 // Make space by trivially relocating everything
17241724 _ConstructTransaction __tx (*this , 1 );
0 commit comments