.TH "__gnu_cxx::temporary_buffer< _ForwardIterator, _Tp >" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME __gnu_cxx::temporary_buffer< _ForwardIterator, _Tp > .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBstd::_Temporary_buffer< _ForwardIterator, _Tp >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "typedef pointer \fBiterator\fP" .br .ti -1c .RI "typedef value_type * \fBpointer\fP" .br .ti -1c .RI "typedef ptrdiff_t \fBsize_type\fP" .br .ti -1c .RI "typedef _Tp \fBvalue_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBtemporary_buffer\fP (_ForwardIterator __first, _ForwardIterator __last)" .br .RI "Requests storage large enough to hold a copy of [first,last)\&. " .ti -1c .RI "\fB~temporary_buffer\fP ()" .br .RI "Destroys objects and frees storage\&. " .ti -1c .RI "iterator \fBbegin\fP ()" .br .RI "As per Table mumble\&. " .ti -1c .RI "iterator \fBend\fP ()" .br .RI "As per Table mumble\&. " .ti -1c .RI "\fBsize_type\fP \fBrequested_size\fP () const" .br .RI "Returns the size requested by the constructor; may be >size()\&. " .ti -1c .RI "\fBsize_type\fP \fBsize\fP () const" .br .RI "As per Table mumble\&. " .in -1c .SS "Protected Attributes" .in +1c .ti -1c .RI "pointer \fB_M_buffer\fP" .br .ti -1c .RI "\fBsize_type\fP \fB_M_len\fP" .br .ti -1c .RI "\fBsize_type\fP \fB_M_original_len\fP" .br .in -1c .SH "Detailed Description" .PP .SS "template::value_type> .br struct __gnu_cxx::temporary_buffer< _ForwardIterator, _Tp >"This class provides similar behavior and semantics of the standard functions get_temporary_buffer() and return_temporary_buffer(), but encapsulated in a type vaguely resembling a standard container\&. .PP By default, a temporary_buffer 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\&. .PP \fCmalloc\fP is used to obtain underlying storage\&. .PP 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\&. .PP Definition at line \fB183\fP of file \fBext/memory\fP\&. .SH "Member Typedef Documentation" .PP .SS "template typedef pointer \fBstd::_Temporary_buffer\fP< _ForwardIterator, _Tp >::iterator\fC [inherited]\fP" .PP Definition at line \fB130\fP of file \fBstl_tempbuf\&.h\fP\&. .SS "template typedef value_type* \fBstd::_Temporary_buffer\fP< _ForwardIterator, _Tp >::pointer\fC [inherited]\fP" .PP Definition at line \fB129\fP of file \fBstl_tempbuf\&.h\fP\&. .SS "template typedef ptrdiff_t \fBstd::_Temporary_buffer\fP< _ForwardIterator, _Tp >::size_type\fC [inherited]\fP" .PP Definition at line \fB131\fP of file \fBstl_tempbuf\&.h\fP\&. .SS "template typedef _Tp \fBstd::_Temporary_buffer\fP< _ForwardIterator, _Tp >::value_type\fC [inherited]\fP" .PP Definition at line \fB128\fP of file \fBstl_tempbuf\&.h\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "template::value_type> \fB__gnu_cxx::temporary_buffer\fP< _ForwardIterator, _Tp >::temporary_buffer (_ForwardIterator __first, _ForwardIterator __last)\fC [inline]\fP" .PP Requests storage large enough to hold a copy of [first,last)\&. .PP Definition at line \fB186\fP of file \fBext/memory\fP\&. .SS "template::value_type> \fB__gnu_cxx::temporary_buffer\fP< _ForwardIterator, _Tp >::~\fBtemporary_buffer\fP ()\fC [inline]\fP" .PP Destroys objects and frees storage\&. .PP Definition at line \fB192\fP of file \fBext/memory\fP\&. .SH "Member Function Documentation" .PP .SS "template iterator \fBstd::_Temporary_buffer\fP< _ForwardIterator, _Tp >::begin ()\fC [inline]\fP, \fC [inherited]\fP" .PP As per Table mumble\&. .PP Definition at line \fB151\fP of file \fBstl_tempbuf\&.h\fP\&. .SS "template iterator \fBstd::_Temporary_buffer\fP< _ForwardIterator, _Tp >::end ()\fC [inline]\fP, \fC [inherited]\fP" .PP As per Table mumble\&. .PP Definition at line \fB156\fP of file \fBstl_tempbuf\&.h\fP\&. .SS "template \fBsize_type\fP \fBstd::_Temporary_buffer\fP< _ForwardIterator, _Tp >::requested_size () const\fC [inline]\fP, \fC [inherited]\fP" .PP Returns the size requested by the constructor; may be >size()\&. .PP Definition at line \fB146\fP of file \fBstl_tempbuf\&.h\fP\&. .SS "template \fBsize_type\fP \fBstd::_Temporary_buffer\fP< _ForwardIterator, _Tp >::size () const\fC [inline]\fP, \fC [inherited]\fP" .PP As per Table mumble\&. .PP Definition at line \fB141\fP of file \fBstl_tempbuf\&.h\fP\&. .SH "Member Data Documentation" .PP .SS "template pointer \fBstd::_Temporary_buffer\fP< _ForwardIterator, _Tp >::_M_buffer\fC [protected]\fP, \fC [inherited]\fP" .PP Definition at line \fB136\fP of file \fBstl_tempbuf\&.h\fP\&. .SS "template \fBsize_type\fP \fBstd::_Temporary_buffer\fP< _ForwardIterator, _Tp >::_M_len\fC [protected]\fP, \fC [inherited]\fP" .PP Definition at line \fB135\fP of file \fBstl_tempbuf\&.h\fP\&. .SS "template \fBsize_type\fP \fBstd::_Temporary_buffer\fP< _ForwardIterator, _Tp >::_M_original_len\fC [protected]\fP, \fC [inherited]\fP" .PP Definition at line \fB134\fP of file \fBstl_tempbuf\&.h\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.