chsvlib
chsv helper source code

◆ allocate()

pointer allocate ( size_type  n,
allocator< void >::const_pointer  = 0 
)

Allocates an uninitialized memory to hold the specified number of objects of the type T.

Parameters
nspecifies a number of elements of type T that the returned memory can hold.
Returns
Returns a pointer to the allocated memory.
Exceptions
Chusov::Exceptions::OutOfMemoryExceptionThe allocator was unable to allocate the required amount of memory.