MCPcopy Create free account
hub / github.com/fmtlib/fmt / GetOrCreateValue

Method GetOrCreateValue

test/gtest/gtest/gtest.h:1846–1849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1844
1845
1846 T* GetOrCreateValue() const {
1847 return static_cast<ValueHolder*>(
1848 ThreadLocalRegistry::GetValueOnCurrentThread(this))->pointer();
1849 }
1850
1851 virtual ThreadLocalValueHolderBase* NewValueForCurrentThread() const {
1852 return default_factory_->MakeNewHolder();

Callers

nothing calls this directly

Calls 1

pointerMethod · 0.45

Tested by

no test coverage detected