#include "StringInterner.h" const std::string* StringInterner::intern(const std::string& str) { std::pair::iterator, bool> result = pool.insert(str); return &(*result.first); } const std::string* StringInterner::intern(std::string&& str) { std::pair::iterator, bool> result = pool.insert(std::move(str)); return &(*result.first); } const std::string* StringInterner::getEmptyString() { return intern(""); }