33#ifndef _GLIBCXX_STRING
34#define _GLIBCXX_STRING 1
37#pragma GCC system_header
43#define __glibcxx_exc_in_string 1
59#if (_GLIBCXX_HOSTED && __cpp_exceptions && __cplusplus > 202302L \
60 && __cpp_constexpr_exceptions >= 202411L)
62#undef __glibcxx_exc_in_string
65#undef __glibcxx_exc_in_string
68#define __glibcxx_want_algorithm_default_value_type
69#define __glibcxx_want_allocator_traits_is_always_equal
70#define __glibcxx_want_constexpr_char_traits
71#define __glibcxx_want_constexpr_string
72#define __glibcxx_want_containers_ranges
73#define __glibcxx_want_erase_if
74#define __glibcxx_want_nonmember_container_access
75#define __glibcxx_want_string_resize_and_overwrite
76#define __glibcxx_want_string_subview
77#define __glibcxx_want_string_udls
78#define __glibcxx_want_to_string
81#if __cplusplus >= 201703L && _GLIBCXX_USE_CXX11_ABI
83namespace std _GLIBCXX_VISIBILITY(default)
85_GLIBCXX_BEGIN_NAMESPACE_VERSION
87 template<
typename _CharT,
typename _Traits =
char_traits<_CharT>>
88 using basic_string = std::basic_string<_CharT, _Traits,
90 using string = basic_string<char>;
91#ifdef _GLIBCXX_USE_CHAR8_T
92 using u8string = basic_string<char8_t>;
94 using u16string = basic_string<char16_t>;
95 using u32string = basic_string<char32_t>;
96 using wstring = basic_string<wchar_t>;
98_GLIBCXX_END_NAMESPACE_VERSION
102#ifdef __cpp_lib_erase_if
103namespace std _GLIBCXX_VISIBILITY(default)
105_GLIBCXX_BEGIN_NAMESPACE_VERSION
107 template<
typename _CharT,
typename _Traits,
typename _Alloc,
109 constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type
112 using namespace __gnu_cxx;
113 const auto __osz = __cont.size();
114 const auto __end = __cont.end();
115 auto __removed = std::__remove_if(__cont.begin(), __end,
117 __cont.erase(__removed, __end);
118 return __osz - __cont.size();
121 template<
typename _CharT,
typename _Traits,
typename _Alloc,
122 typename _Up _GLIBCXX26_DEF_VAL_T(_CharT)>
123 constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type
125 {
return std::erase_if(__cont, __gnu_cxx::__ops::__equal_to(__value)); }
127_GLIBCXX_END_NAMESPACE_VERSION
constexpr std::remove_reference< _Tp >::type && move(_Tp &&__t) noexcept
Convert a value to an rvalue.
ISO C++ entities toplevel namespace is std.
Managing sequences of characters and character-like objects.
Class template polymorphic_allocator.