summaryrefslogtreecommitdiff
path: root/src/std/smart_string.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-02-15 12:33:52 +0100
committerHampusM <hampus@hampusmat.com>2022-02-15 12:33:52 +0100
commitbcdce9633dc351d3bc7f347a165348b8fab87cd9 (patch)
tree88c2f5d8f0c5fac2bca28e4b543e5209f3bc98fb /src/std/smart_string.hpp
parent917adc6a2b6b166e37fc3d4f94b41488f0c245a5 (diff)
refactor: reorganize files & improve classes
Diffstat (limited to 'src/std/smart_string.hpp')
-rw-r--r--src/std/smart_string.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/std/smart_string.hpp b/src/std/smart_string.hpp
new file mode 100644
index 0000000..6390465
--- /dev/null
+++ b/src/std/smart_string.hpp
@@ -0,0 +1,20 @@
+#pragma once
+
+class SmartString
+{
+public:
+ explicit SmartString(char *c_str);
+ explicit SmartString(unsigned int size);
+ SmartString(const SmartString &smart_str);
+ SmartString(SmartString &&smart_str) noexcept;
+
+ SmartString &operator=(const SmartString &smart_str);
+
+ SmartString &operator=(SmartString &&smart_str) noexcept;
+
+ ~SmartString();
+
+ explicit operator char *() const;
+
+ char *c_str = nullptr;
+};