Trivial wrapper around malloc that check for allocation failure and throw std::bad_alloc in that case.
Declared in <folly/memory/Malloc.h>
void*
checkedMalloc(size_t size);
methodset Allocation Wrappers
void* pointer to allocated buffer
| Name | Description |
|---|---|
| size | size of allocation |