From Cppreference
|
template< class T > std::pair< T*, std::ptrdiff_t > get_temporary_buffer( std::ptrdiff_t count )
|
|
|
|
|
Allocates storage sufficient to store up to count adjacent objects of type T. If there is insufficient memory for all count objects, allocates less than count, if possible.
[edit] Parameters
count
|
-
|
the number of objects to allocate
|
[edit] Return value
An std::pair holding a pointer to the beginning of the allocated storage and the number of objects that fit in the storage that was actually allocated (may be zero).
[edit] Exceptions
[edit] Example
[edit] See also
|
|
frees uninitialized storage (function template)
|