GNU g++  v5.2.1
GNU Standard C++
stl_tempbuf.h File Reference

This is an internal header file, included by other library headers. More...

Include dependency graph for stl_tempbuf.h:
This graph shows which files directly or indirectly include this file:

Functions

namespace std _GLIBCXX_VISIBILITY (default)
 

Detailed Description

This is an internal header file, included by other library headers.

Do not attempt to use it directly. {memory}

Function Documentation

namespace std _GLIBCXX_VISIBILITY ( default  )

Allocates a temporary buffer.

Parameters
__lenThe number of objects of type Tp.
Returns
See full description.

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().

Parameters
__pA buffer previously allocated by get_temporary_buffer.
Returns
None.

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.