Inherits std::_Temporary_buffer< _ForwardIterator, _Tp >.
typedef pointer iterator
typedef value_type * pointer
typedef ptrdiff_t size_type
typedef _Tp value_type
temporary_buffer (_ForwardIterator __first, _ForwardIterator __last)
Requests storage large enough to hold a copy of [first,last).
~temporary_buffer ()
Destroys objects and frees storage.
iterator begin ()
As per Table mumble.
iterator end ()
As per Table mumble.
size_type requested_size () const
Returns the size requested by the constructor; may be >size().
size_type size () const
As per Table mumble.
pointer _M_buffer
size_type _M_len
size_type _M_original_len
By default, a temporary_buffer<Iter> stores space for objects of whatever type the Iter iterator points to. It is constructed from a typical [first,last) range, and provides the begin(), end(), size() functions, as well as requested_size(). For non-trivial types, copies of *first will be used to initialize the storage.
malloc is used to obtain underlying storage.
Like get_temporary_buffer(), not all the requested memory may be available. Ideally, the created buffer will be large enough to hold a copy of [first,last), but if size() is less than requested_size(), then this didn't happen.
Definition at line 183 of file ext/memory.
Requests storage large enough to hold a copy of [first,last).
Definition at line 186 of file ext/memory.
Destroys objects and frees storage.
Definition at line 190 of file ext/memory.
As per Table mumble.
Definition at line 151 of file stl_tempbuf.h.
As per Table mumble.
Definition at line 156 of file stl_tempbuf.h.
Returns the size requested by the constructor; may be >size().
Definition at line 146 of file stl_tempbuf.h.
As per Table mumble.
Definition at line 141 of file stl_tempbuf.h.
Generated automatically by Doxygen for libstdc++ from the source code.