Finds or allocates a unique string and returns a persistent `std::string_view`
| 175 | |
| 176 | // Finds or allocates a unique string and returns a persistent `std::string_view` |
| 177 | std::string_view InternString(std::string_view str) { |
| 178 | return *string_cache_.emplace(str).first; |
| 179 | } |
| 180 | |
| 181 | private: |
| 182 | MemoryPool* pool_; |