15 inline namespace _V1 {
26 ~
string() {
delete[] str; }
29 size_t len = strn.length();
30 str =
new char[len + 1];
36 std::swap(lhs.str, rhs.str);
41 if (other.str ==
nullptr)
43 *
this =
string{other.str};
51 *
this =
string{other};
63 return rhs == lhs.c_str();
66 return lhs == rhs.c_str();
friend bool operator==(std::string_view lhs, const string &rhs) noexcept
string() noexcept=default
string & operator=(string &&other) noexcept
string(const string &other)
string & operator=(const string &other)
const char * c_str() const noexcept
string(string &&other) noexcept
string & operator=(std::string_view strn)
friend bool operator==(const string &lhs, std::string_view rhs) noexcept
string(std::string_view strn)
friend void swap(string &lhs, string &rhs) noexcept
_Abi const simd< _Tp, _Abi > & noexcept