| 211 | } |
| 212 | |
| 213 | Result 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 | |
| 225 | Result AwaitAllocator::close() |
| 226 | { |