summaryrefslogtreecommitdiffstats
path: root/include/core
diff options
context:
space:
mode:
authorMarc <marc.gilleron@gmail.com>2021-06-01 23:35:46 +0100
committerGitHub <noreply@github.com>2021-06-01 23:35:46 +0100
commitfda7ddd158b2d2ef6d7af7d509694415ec81d615 (patch)
tree4cb346627ce8f6114827fbda244843520ada6d2a /include/core
parent59959b1a5bc8c81800115daf7ec29e01324f7dfd (diff)
parent7a1890345b2658b422823bce889f88cc7dbb76d5 (diff)
downloadredot-cpp-fda7ddd158b2d2ef6d7af7d509694415ec81d615.tar.gz
Merge pull request #567 from DhruvMaroo/string
added String's move constructor and move assignment operator
Diffstat (limited to 'include/core')
-rw-r--r--include/core/String.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/String.hpp b/include/core/String.hpp
index 7c11ac7..2dea845 100644
--- a/include/core/String.hpp
+++ b/include/core/String.hpp
@@ -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;