MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / createPolymorphic

Method createPolymorphic

Libraries/Await/Await.cpp:213–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213Result AwaitAllocator::createPolymorphic(AwaitAllocatorInterface& customAllocatorInterface)
214{
215 if (isOpen())
216 {
217 return Result::Error("AwaitAllocator is already open");
218 }
219 resetState();
220 allocatorInterface = &customAllocatorInterface;
221 currentMode = AwaitAllocatorMode::Polymorphic;
222 return Result(true);
223}
224
225Result AwaitAllocator::close()
226{

Callers 1

allocatorModesMethod · 0.80

Calls 2

ErrorEnum · 0.50
ResultClass · 0.50

Tested by 1

allocatorModesMethod · 0.64