| ... | @@ -419,7 +419,7 @@ public: | ... | @@ -419,7 +419,7 @@ public: |
| 419 | } | 419 | } |
| 420 | | 420 | |
| 421 | _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept; | 421 | _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept; |
| 422 | #endif | 422 | #endif // _LIBCPP_STD_VER >= 20 |
| 423 | | 423 | |
| 424 | void str(const string_type& __s) { | 424 | void str(const string_type& __s) { |
| 425 | __str_ = __s; | 425 | __str_ = __s; |
| ... | @@ -904,20 +904,22 @@ public: | ... | @@ -904,20 +904,22 @@ public: |
| 904 | return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_); | 904 | return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_); |
| 905 | } | 905 | } |
| 906 | | 906 | |
| 907 | #if _LIBCPP_STD_VER >= 20 | 907 | #if _LIBCPP_STD_VER <= 17 || defined(_LIBCPP_BUILDING_LIBRARY) |
| 908 | _LIBCPP_HIDE_FROM_ABI string_type str() const & { return __sb_.str(); } | 908 | _LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); } |
| | 909 | #else |
| | 910 | _LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() const & { return __sb_.str(); } |
| | 911 | |
| | 912 | _LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() && { return std::move(__sb_).str(); } |
| | 913 | #endif |
| 909 | | 914 | |
| | 915 | #if _LIBCPP_STD_VER >= 20 |
| 910 | template <class _SAlloc> | 916 | template <class _SAlloc> |
| 911 | requires __is_allocator<_SAlloc>::value | 917 | requires __is_allocator<_SAlloc>::value |
| 912 | _LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const { | 918 | _LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const { |
| 913 | return __sb_.str(__sa); | 919 | return __sb_.str(__sa); |
| 914 | } | 920 | } |
| 915 | | 921 | |
| 916 | _LIBCPP_HIDE_FROM_ABI string_type str() && { return std::move(__sb_).str(); } | | |
| 917 | | | |
| 918 | _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); } | 922 | _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); } |
| 919 | #else // _LIBCPP_STD_VER >= 20 | | |
| 920 | _LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); } | | |
| 921 | #endif // _LIBCPP_STD_VER >= 20 | 923 | #endif // _LIBCPP_STD_VER >= 20 |
| 922 | | 924 | |
| 923 | _LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); } | 925 | _LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); } |
| ... | @@ -1027,20 +1029,22 @@ public: | ... | @@ -1027,20 +1029,22 @@ public: |
| 1027 | return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_); | 1029 | return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_); |
| 1028 | } | 1030 | } |
| 1029 | | 1031 | |
| 1030 | #if _LIBCPP_STD_VER >= 20 | 1032 | #if _LIBCPP_STD_VER <= 17 || defined(_LIBCPP_BUILDING_LIBRARY) |
| 1031 | _LIBCPP_HIDE_FROM_ABI string_type str() const & { return __sb_.str(); } | 1033 | _LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); } |
| | 1034 | #else |
| | 1035 | _LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() const & { return __sb_.str(); } |
| 1032 | | 1036 | |
| | 1037 | _LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() && { return std::move(__sb_).str(); } |
| | 1038 | #endif |
| | 1039 | |
| | 1040 | #if _LIBCPP_STD_VER >= 20 |
| 1033 | template <class _SAlloc> | 1041 | template <class _SAlloc> |
| 1034 | requires __is_allocator<_SAlloc>::value | 1042 | requires __is_allocator<_SAlloc>::value |
| 1035 | _LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const { | 1043 | _LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const { |
| 1036 | return __sb_.str(__sa); | 1044 | return __sb_.str(__sa); |
| 1037 | } | 1045 | } |
| 1038 | | 1046 | |
| 1039 | _LIBCPP_HIDE_FROM_ABI string_type str() && { return std::move(__sb_).str(); } | | |
| 1040 | | | |
| 1041 | _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); } | 1047 | _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); } |
| 1042 | #else // _LIBCPP_STD_VER >= 20 | | |
| 1043 | _LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); } | | |
| 1044 | #endif // _LIBCPP_STD_VER >= 20 | 1048 | #endif // _LIBCPP_STD_VER >= 20 |
| 1045 | | 1049 | |
| 1046 | _LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); } | 1050 | _LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); } |
| ... | @@ -1149,20 +1153,22 @@ public: | ... | @@ -1149,20 +1153,22 @@ public: |
| 1149 | return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_); | 1153 | return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_); |
| 1150 | } | 1154 | } |
| 1151 | | 1155 | |
| 1152 | #if _LIBCPP_STD_VER >= 20 | 1156 | #if _LIBCPP_STD_VER <= 17 || defined(_LIBCPP_BUILDING_LIBRARY) |
| 1153 | _LIBCPP_HIDE_FROM_ABI string_type str() const & { return __sb_.str(); } | 1157 | _LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); } |
| | 1158 | #else |
| | 1159 | _LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() const & { return __sb_.str(); } |
| | 1160 | |
| | 1161 | _LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() && { return std::move(__sb_).str(); } |
| | 1162 | #endif |
| 1154 | | 1163 | |
| | 1164 | #if _LIBCPP_STD_VER >= 20 |
| 1155 | template <class _SAlloc> | 1165 | template <class _SAlloc> |
| 1156 | requires __is_allocator<_SAlloc>::value | 1166 | requires __is_allocator<_SAlloc>::value |
| 1157 | _LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const { | 1167 | _LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const { |
| 1158 | return __sb_.str(__sa); | 1168 | return __sb_.str(__sa); |
| 1159 | } | 1169 | } |
| 1160 | | 1170 | |
| 1161 | _LIBCPP_HIDE_FROM_ABI string_type str() && { return std::move(__sb_).str(); } | | |
| 1162 | | | |
| 1163 | _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); } | 1171 | _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); } |
| 1164 | #else // _LIBCPP_STD_VER >= 20 | | |
| 1165 | _LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); } | | |
| 1166 | #endif // _LIBCPP_STD_VER >= 20 | 1172 | #endif // _LIBCPP_STD_VER >= 20 |
| 1167 | | 1173 | |
| 1168 | _LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); } | 1174 | _LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); } |