Personal tools
get_temporary_buffer
Click on the banner to return to the class reference home page.
get_temporary_buffer
Memory Handling Primitive
Summary
Pointer based primitive for handling memory
Data Type and Member Function Indexes
(exclusive of constructors and destructors)
None
Synopsis
#include <memory> template <class T> pair<T*, ptrdiff_t> get_temporary_buffer (ptrdiff_t, T*);
Description
The get_temporary_buffer templated function reserves from system memory the largest possible buffer that is less than or equal to the size requested (n*sizeof(T)), and returns a pair<T*, ptrdiff_t> containing the address and size of that buffer. The units used to describe the capacity are in sizeof(T).
See Also
allocator, pair, return_temporary_buffer.
©Copyright 1996, Rogue Wave Software, Inc.