MCPcopy Create free account
hub / github.com/cpputest/cpputest / getStringAllocator

Method getStringAllocator

src/CppUTest/SimpleString.cpp:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105TestMemoryAllocator* SimpleString::stringAllocator_ = NULLPTR;
106
107TestMemoryAllocator* SimpleString::getStringAllocator()
108{
109 if (stringAllocator_ == NULLPTR)
110 return defaultNewArrayAllocator();
111 return stringAllocator_;
112}
113
114void SimpleString::setStringAllocator(TestMemoryAllocator* allocator)
115{

Callers

nothing calls this directly

Calls 1

defaultNewArrayAllocatorFunction · 0.85

Tested by

no test coverage detected