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

Method restoreAllocator

src/CppUTest/SimpleString.cpp:63–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void GlobalSimpleStringMemoryAccountant::restoreAllocator()
64{
65 if (SimpleString::getStringAllocator() == allocator_)
66 SimpleString::setStringAllocator(allocator_->originalAllocator());
67}
68
69void GlobalSimpleStringMemoryAccountant::useCacheSizes(size_t cacheSizes[], size_t length)
70{

Callers

nothing calls this directly

Calls 1

originalAllocatorMethod · 0.45

Tested by

no test coverage detected