Trivial wrapper around realloc that check for allocation failure and throw std::bad_alloc in that case.
Declared in <folly/memory/Malloc.h>
void*
checkedRealloc(
void* ptr,
size_t size);
methodset Allocation Wrappers
pointer to reallocated buffer
| Name | Description |
|---|---|
| ptr | pointer to start of buffer |
| size | size to reallocate starting from ptr |