mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
libcxx: update for llvm 17.0.0rc3
This commit is contained in:
parent
8a9f8a1d77
commit
cd6a236279
1 changed files with 25 additions and 19 deletions
44
lib/libcxx/include/sstream
vendored
44
lib/libcxx/include/sstream
vendored
|
|
@ -419,7 +419,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
_LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept;
|
_LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept;
|
||||||
#endif
|
#endif // _LIBCPP_STD_VER >= 20
|
||||||
|
|
||||||
void str(const string_type& __s) {
|
void str(const string_type& __s) {
|
||||||
__str_ = __s;
|
__str_ = __s;
|
||||||
|
|
@ -904,20 +904,22 @@ public:
|
||||||
return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_);
|
return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if _LIBCPP_STD_VER >= 20
|
#if _LIBCPP_STD_VER <= 17 || defined(_LIBCPP_BUILDING_LIBRARY)
|
||||||
_LIBCPP_HIDE_FROM_ABI string_type str() const & { return __sb_.str(); }
|
_LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); }
|
||||||
|
#else
|
||||||
|
_LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() const & { return __sb_.str(); }
|
||||||
|
|
||||||
|
_LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() && { return std::move(__sb_).str(); }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _LIBCPP_STD_VER >= 20
|
||||||
template <class _SAlloc>
|
template <class _SAlloc>
|
||||||
requires __is_allocator<_SAlloc>::value
|
requires __is_allocator<_SAlloc>::value
|
||||||
_LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const {
|
_LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const {
|
||||||
return __sb_.str(__sa);
|
return __sb_.str(__sa);
|
||||||
}
|
}
|
||||||
|
|
||||||
_LIBCPP_HIDE_FROM_ABI string_type str() && { return std::move(__sb_).str(); }
|
|
||||||
|
|
||||||
_LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); }
|
_LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); }
|
||||||
#else // _LIBCPP_STD_VER >= 20
|
|
||||||
_LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); }
|
|
||||||
#endif // _LIBCPP_STD_VER >= 20
|
#endif // _LIBCPP_STD_VER >= 20
|
||||||
|
|
||||||
_LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); }
|
_LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); }
|
||||||
|
|
@ -1027,20 +1029,22 @@ public:
|
||||||
return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_);
|
return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if _LIBCPP_STD_VER >= 20
|
#if _LIBCPP_STD_VER <= 17 || defined(_LIBCPP_BUILDING_LIBRARY)
|
||||||
_LIBCPP_HIDE_FROM_ABI string_type str() const & { return __sb_.str(); }
|
_LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); }
|
||||||
|
#else
|
||||||
|
_LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() const & { return __sb_.str(); }
|
||||||
|
|
||||||
|
_LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() && { return std::move(__sb_).str(); }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _LIBCPP_STD_VER >= 20
|
||||||
template <class _SAlloc>
|
template <class _SAlloc>
|
||||||
requires __is_allocator<_SAlloc>::value
|
requires __is_allocator<_SAlloc>::value
|
||||||
_LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const {
|
_LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const {
|
||||||
return __sb_.str(__sa);
|
return __sb_.str(__sa);
|
||||||
}
|
}
|
||||||
|
|
||||||
_LIBCPP_HIDE_FROM_ABI string_type str() && { return std::move(__sb_).str(); }
|
|
||||||
|
|
||||||
_LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); }
|
_LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); }
|
||||||
#else // _LIBCPP_STD_VER >= 20
|
|
||||||
_LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); }
|
|
||||||
#endif // _LIBCPP_STD_VER >= 20
|
#endif // _LIBCPP_STD_VER >= 20
|
||||||
|
|
||||||
_LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); }
|
_LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); }
|
||||||
|
|
@ -1149,20 +1153,22 @@ public:
|
||||||
return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_);
|
return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if _LIBCPP_STD_VER >= 20
|
#if _LIBCPP_STD_VER <= 17 || defined(_LIBCPP_BUILDING_LIBRARY)
|
||||||
_LIBCPP_HIDE_FROM_ABI string_type str() const & { return __sb_.str(); }
|
_LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); }
|
||||||
|
#else
|
||||||
|
_LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() const & { return __sb_.str(); }
|
||||||
|
|
||||||
|
_LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() && { return std::move(__sb_).str(); }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _LIBCPP_STD_VER >= 20
|
||||||
template <class _SAlloc>
|
template <class _SAlloc>
|
||||||
requires __is_allocator<_SAlloc>::value
|
requires __is_allocator<_SAlloc>::value
|
||||||
_LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const {
|
_LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const {
|
||||||
return __sb_.str(__sa);
|
return __sb_.str(__sa);
|
||||||
}
|
}
|
||||||
|
|
||||||
_LIBCPP_HIDE_FROM_ABI string_type str() && { return std::move(__sb_).str(); }
|
|
||||||
|
|
||||||
_LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); }
|
_LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); }
|
||||||
#else // _LIBCPP_STD_VER >= 20
|
|
||||||
_LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); }
|
|
||||||
#endif // _LIBCPP_STD_VER >= 20
|
#endif // _LIBCPP_STD_VER >= 20
|
||||||
|
|
||||||
_LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); }
|
_LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); }
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue