MCPcopy Create free account
hub / github.com/Kitware/CMake / get

Method get

Utilities/cmcppdap/src/typeof.cpp:87–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85};
86
87TypeInfos* TypeInfos::get() {
88 static aligned_storage<sizeof(TypeInfos), alignof(TypeInfos)>::type memory;
89
90 struct Instance {
91 TypeInfos* ptr() { return reinterpret_cast<TypeInfos*>(memory.data); }
92 Instance() { new (ptr()) TypeInfos(); }
93 ~Instance() { ptr()->release(); }
94 };
95
96 static Instance instance;
97 return instance.ptr();
98}
99
100} // namespace
101

Callers 11

TEST_FFunction · 0.45
processResponseMethod · 0.45
TESTFunction · 0.45
runMethod · 0.45
parse_titleMethod · 0.45
applyMethod · 0.45
add_target_and_indexMethod · 0.45
runMethod · 0.45
runMethod · 0.45
applyMethod · 0.45
resolve_xrefMethod · 0.45

Calls 1

ptrMethod · 0.45

Tested by 2

TEST_FFunction · 0.36
TESTFunction · 0.36