|
@@ -1321,14 +1321,31 @@ public:
|
|
static const size_type npos = -1;
|
|
static const size_type npos = -1;
|
|
|
|
|
|
_LIBCPP_INLINE_VISIBILITY basic_string()
|
|
_LIBCPP_INLINE_VISIBILITY basic_string()
|
|
|
|
+#if _LIBCPP_STD_VER <= 14
|
|
_NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value);
|
|
_NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value);
|
|
- _LIBCPP_INLINE_VISIBILITY explicit basic_string(const allocator_type& __a);
|
|
|
|
|
|
+#else
|
|
|
|
+ _NOEXCEPT;
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+ _LIBCPP_INLINE_VISIBILITY explicit basic_string(const allocator_type& __a)
|
|
|
|
+#if _LIBCPP_STD_VER <= 14
|
|
|
|
+ _NOEXCEPT_(is_nothrow_copy_constructible<allocator_type>::value);
|
|
|
|
+#else
|
|
|
|
+ _NOEXCEPT;
|
|
|
|
+#endif
|
|
|
|
+
|
|
basic_string(const basic_string& __str);
|
|
basic_string(const basic_string& __str);
|
|
basic_string(const basic_string& __str, const allocator_type& __a);
|
|
basic_string(const basic_string& __str, const allocator_type& __a);
|
|
|
|
+
|
|
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
|
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
|
_LIBCPP_INLINE_VISIBILITY
|
|
_LIBCPP_INLINE_VISIBILITY
|
|
basic_string(basic_string&& __str)
|
|
basic_string(basic_string&& __str)
|
|
|
|
+#if _LIBCPP_STD_VER <= 14
|
|
_NOEXCEPT_(is_nothrow_move_constructible<allocator_type>::value);
|
|
_NOEXCEPT_(is_nothrow_move_constructible<allocator_type>::value);
|
|
|
|
+#else
|
|
|
|
+ _NOEXCEPT;
|
|
|
|
+#endif
|
|
|
|
+
|
|
_LIBCPP_INLINE_VISIBILITY
|
|
_LIBCPP_INLINE_VISIBILITY
|
|
basic_string(basic_string&& __str, const allocator_type& __a);
|
|
basic_string(basic_string&& __str, const allocator_type& __a);
|
|
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
|
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
|
@@ -1926,7 +1943,11 @@ basic_string<_CharT, _Traits, _Allocator>::__invalidate_iterators_past(size_type
|
|
template <class _CharT, class _Traits, class _Allocator>
|
|
template <class _CharT, class _Traits, class _Allocator>
|
|
inline _LIBCPP_INLINE_VISIBILITY
|
|
inline _LIBCPP_INLINE_VISIBILITY
|
|
basic_string<_CharT, _Traits, _Allocator>::basic_string()
|
|
basic_string<_CharT, _Traits, _Allocator>::basic_string()
|
|
- _NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value)
|
|
|
|
|
|
+#if _LIBCPP_STD_VER <= 14
|
|
|
|
+ _NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value)
|
|
|
|
+#else
|
|
|
|
+ _NOEXCEPT
|
|
|
|
+#endif
|
|
{
|
|
{
|
|
#if _LIBCPP_DEBUG_LEVEL >= 2
|
|
#if _LIBCPP_DEBUG_LEVEL >= 2
|
|
__get_db()->__insert_c(this);
|
|
__get_db()->__insert_c(this);
|
|
@@ -2070,7 +2091,11 @@ basic_string<_CharT, _Traits, _Allocator>::basic_string(const basic_string& __st
|
|
template <class _CharT, class _Traits, class _Allocator>
|
|
template <class _CharT, class _Traits, class _Allocator>
|
|
inline _LIBCPP_INLINE_VISIBILITY
|
|
inline _LIBCPP_INLINE_VISIBILITY
|
|
basic_string<_CharT, _Traits, _Allocator>::basic_string(basic_string&& __str)
|
|
basic_string<_CharT, _Traits, _Allocator>::basic_string(basic_string&& __str)
|
|
|
|
+#if _LIBCPP_STD_VER <= 14
|
|
_NOEXCEPT_(is_nothrow_move_constructible<allocator_type>::value)
|
|
_NOEXCEPT_(is_nothrow_move_constructible<allocator_type>::value)
|
|
|
|
+#else
|
|
|
|
+ _NOEXCEPT
|
|
|
|
+#endif
|
|
: __r_(_VSTD::move(__str.__r_))
|
|
: __r_(_VSTD::move(__str.__r_))
|
|
{
|
|
{
|
|
__str.__zero();
|
|
__str.__zero();
|