Merge pull request #567 from DhruvMaroo/string

added String's move constructor and move assignment operator
This commit is contained in:
Marc
2021-06-01 23:35:46 +01:00
committed by GitHub
2 changed files with 11 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ public:
String(const wchar_t *contents);
String(const wchar_t c);
String(const String &other);
String(String &&other);
~String();
@@ -55,6 +56,7 @@ public:
wchar_t operator[](const int idx) const;
void operator=(const String &s);
void operator=(String &&s);
bool operator==(const String &s) const;
bool operator!=(const String &s) const;
String operator+(const String &s) const;