@@ -255,10 +255,10 @@ public:
255
255
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY
256
256
basic_string_view () _NOEXCEPT : __data (nullptr ), __size (0 ) {}
257
257
258
- _LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY
258
+ _LIBCPP_INLINE_VISIBILITY
259
259
basic_string_view (const basic_string_view&) _NOEXCEPT = default ;
260
260
261
- _LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY
261
+ _LIBCPP_INLINE_VISIBILITY
262
262
basic_string_view& operator =(const basic_string_view&) _NOEXCEPT = default ;
263
263
264
264
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY
@@ -618,28 +618,28 @@ public:
618
618
}
619
619
620
620
#if _LIBCPP_STD_VER > 17
621
- _LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY
622
- bool starts_with (basic_string_view __s) const _NOEXCEPT
621
+ constexpr _LIBCPP_INLINE_VISIBILITY
622
+ bool starts_with (basic_string_view __s) const noexcept
623
623
{ return size () >= __s.size () && compare (0 , __s.size (), __s) == 0 ; }
624
624
625
- _LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY
626
- bool starts_with (value_type __c) const _NOEXCEPT
625
+ constexpr _LIBCPP_INLINE_VISIBILITY
626
+ bool starts_with (value_type __c) const noexcept
627
627
{ return !empty () && _Traits::eq (front (), __c); }
628
628
629
- _LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY
630
- bool starts_with (const value_type* __s) const _NOEXCEPT
629
+ constexpr _LIBCPP_INLINE_VISIBILITY
630
+ bool starts_with (const value_type* __s) const noexcept
631
631
{ return starts_with (basic_string_view (__s)); }
632
632
633
- _LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY
634
- bool ends_with (basic_string_view __s) const _NOEXCEPT
633
+ constexpr _LIBCPP_INLINE_VISIBILITY
634
+ bool ends_with (basic_string_view __s) const noexcept
635
635
{ return size () >= __s.size () && compare (size () - __s.size (), npos, __s) == 0 ; }
636
636
637
- _LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY
638
- bool ends_with (value_type __c) const _NOEXCEPT
637
+ constexpr _LIBCPP_INLINE_VISIBILITY
638
+ bool ends_with (value_type __c) const noexcept
639
639
{ return !empty () && _Traits::eq (back (), __c); }
640
640
641
- _LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY
642
- bool ends_with (const value_type* __s) const _NOEXCEPT
641
+ constexpr _LIBCPP_INLINE_VISIBILITY
642
+ bool ends_with (const value_type* __s) const noexcept
643
643
{ return ends_with (basic_string_view (__s)); }
644
644
#endif
645
645
0 commit comments