@@ -1399,7 +1399,8 @@ public:
1399
1399
return substr(_Off, _Nx).compare(_Right.substr(_Roff, _Count));
1400
1400
}
1401
1401
1402
- _NODISCARD constexpr int compare(_In_z_ const _Elem* const _Ptr) const { // compare [0, _Mysize) with [_Ptr, <null>)
1402
+ _NODISCARD constexpr int compare(_In_z_ const _Elem* const _Ptr) const noexcept /* strengthened */ {
1403
+ // compare [0, _Mysize) with [_Ptr, <null>)
1403
1404
return compare(basic_string_view(_Ptr));
1404
1405
}
1405
1406
@@ -4270,7 +4271,7 @@ public:
4270
4271
_Construct_in_place(_Starts_small._Bx._Ptr, _Ptr);
4271
4272
}
4272
4273
4273
- _CONSTEXPR20 void _Swap_data(basic_string& _Right) {
4274
+ _CONSTEXPR20 void _Swap_data(basic_string& _Right) noexcept {
4274
4275
using _STD swap;
4275
4276
4276
4277
auto& _My_data = _Mypair._Myval2;
@@ -4826,7 +4827,7 @@ private:
4826
4827
_My_data._Myres = _BUF_SIZE - 1;
4827
4828
}
4828
4829
4829
- _CONSTEXPR20 void _Eos(const size_type _New_size) { // set new length and null terminator
4830
+ _CONSTEXPR20 void _Eos(const size_type _New_size) noexcept { // set new length and null terminator
4830
4831
_ASAN_STRING_MODIFY(*this, _Mypair._Myval2._Mysize, _New_size);
4831
4832
_Traits::assign(_Mypair._Myval2._Myptr()[_Mypair._Myval2._Mysize = _New_size], _Elem());
4832
4833
}
@@ -4866,7 +4867,7 @@ public:
4866
4867
}
4867
4868
4868
4869
private:
4869
- _CONSTEXPR20 void _Swap_proxy_and_iterators(basic_string& _Right) {
4870
+ _CONSTEXPR20 void _Swap_proxy_and_iterators(basic_string& _Right) noexcept {
4870
4871
_Mypair._Myval2._Swap_proxy_and_iterators(_Right._Mypair._Myval2);
4871
4872
}
4872
4873
0 commit comments