Shinichiro Hamaji | 776ca30 | 2015-06-06 03:52:48 +0900 | [diff] [blame] | 1 | #ifndef STRING_POOL_H_ |
2 | #define STRING_POOL_H_ | ||||
3 | |||||
4 | #include <string> | ||||
5 | #include <vector> | ||||
6 | |||||
7 | #include "string_piece.h" | ||||
8 | |||||
9 | using namespace std; | ||||
10 | |||||
11 | class StringPool { | ||||
12 | public: | ||||
13 | StringPool(); | ||||
14 | ~StringPool(); | ||||
15 | |||||
16 | StringPiece Add(StringPiece s); | ||||
17 | |||||
18 | private: | ||||
19 | vector<char*> pool_; | ||||
20 | }; | ||||
21 | |||||
22 | #endif // STRING_POOL_H_ |