13 #include <unordered_map> 29 const char*
intern(
const std::string& str);
32 std::unordered_map<std::string, char*> _map;
36 const char* intern_string(
const std::string& str);
const char * intern(const std::string &str)
Not thread-safe. The allocated string will be freed when this StringInterner dies.
Definition: string_interning.hpp:23
Definition: coroutine.hpp:18