summaryrefslogtreecommitdiff
path: root/src/utils/smart_string.hpp
blob: 63904655222fb1497cb23b5a96b1e8f0d44cd276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
};