aboutsummaryrefslogtreecommitdiff
path: root/src/fstring.h
blob: 2eaa4ba08996d8dede3f323045be20a438098a1b (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
26
27
28
29
30
31
#ifndef F_STRING_H
#define F_STRING_H

#include <stdint.h>
#include <memory>

/**
 *
 */
template< typename chr, typename chralloc = std::allocator<chr> >
class FString
{
public:
	FString() :
		pData( NULL ),
		pnRefs( NULL )
	{
	}

	virtual ~FString()
	{
	}

private:
	long nLength;
	chr *pData;
	uint32_t *pnRefs;
	chralloc aChars;
};

#endif