This is an internal header file, included by other library headers. More...
Functions | |
namespace std | _GLIBCXX_VISIBILITY (default) |
This is an internal header file, included by other library headers.
Do not attempt to use it directly. {memory}
namespace std _GLIBCXX_VISIBILITY | ( | default | ) |
Allocates a temporary buffer.
__len | The number of objects of type Tp. |
Reinventing the wheel, but this time with prettier spokes!
This function tries to obtain storage for __len
adjacent Tp objects. The objects themselves are not constructed, of course. A pair<> is returned containing the buffer s address and capacity (in the units of sizeof(_Tp)), or a pair of 0 values if no storage can be obtained. Note that the capacity obtained may be less than that requested if the memory is unavailable; you should compare len with the .second return value.
Provides the nothrow exception guarantee.
The companion to get_temporary_buffer().
__p | A buffer previously allocated by get_temporary_buffer. |
Frees the memory pointed to by __p.
This class is used in two places: stl_algo.h and ext/memory, where it is wrapped as the temporary_buffer class. See temporary_buffer docs for more notes.
As per Table mumble.
Returns the size requested by the constructor; may be >size().
As per Table mumble.
As per Table mumble.
Constructs a temporary buffer of a size somewhere between zero and the size of the given range.
References __catch, __glibcxx_class_requires, __throw_exception_again, __try, and _GLIBCXX_MOVE.