MCPcopy Create free account
hub / github.com/SergeyMakeev/ExcaliburHash / StringInternStringData

Class StringInternStringData

ExcaliburHashTest06.cpp:49–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47TEST(SmFlatHashMap, TestTmp)
48{
49 class StringInternStringData
50 {
51 public:
52 inline StringInternStringData()
53 : refCount(0)
54 , string()
55 {
56 }
57
58 inline StringInternStringData(const std::string& string)
59 : refCount(1)
60 , string(string)
61 {
62 }
63
64 int64_t refCount;
65 std::string string;
66 };
67
68 Excalibur::HashTable<std::string, std::unique_ptr<StringInternStringData>> exMap;
69 auto inserted = exMap.emplace(std::string("test"), std::make_unique<StringInternStringData>("test"));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected