std::realloc
From cppreference.com
Defined in header <cstdlib>
|
||
void *malloc( size_t size ); |
||
Allocates an area of memory.
size | - | number of bytes to allocate |
Return value
pointer to the beginning of newly allocated memory or Template:cpp if error has occurred. The pointer must be deallocated with free()
.
This function does not call constructors or initialize the memory in any way. Thus preferred method of memory allocation is new expression.