summaryrefslogtreecommitdiff
path: root/src/common/string.hpp
blob: 264145740ba52c232eef4de09526bc7d3e121ce3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

namespace common
{

class String
{
public:
	explicit String(char *c_str);
	explicit String(unsigned int size);
	String(const String &smart_str);
	String(String &&smart_str) noexcept;

	String &operator=(const String &smart_str);

	String &operator=(String &&smart_str) noexcept;

	~String();

	explicit operator char *() const;

	char *c_str = nullptr;
};

} // namespace common