.TH "__gnu_cxx::temporary_buffer< _ForwardIterator, _Tp >" 3cxx "Mon May 22 2017" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME __gnu_cxx::temporary_buffer< _ForwardIterator, _Tp > .SH SYNOPSIS .br .PP .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 "size_type \fBrequested_size\fP () const" .br .RI "Returns the size requested by the constructor; may be >size()\&. " .ti -1c .RI "size_type \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 "size_type \fB_M_len\fP" .br .ti -1c .RI "size_type \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 183 of file ext/memory\&. .SH "Constructor & Destructor Documentation" .PP .SS "template::value_type> \fB__gnu_cxx::temporary_buffer\fP< _ForwardIterator, _Tp >::\fBtemporary_buffer\fP (_ForwardIterator __first, _ForwardIterator __last)\fC [inline]\fP" .PP Requests storage large enough to hold a copy of [first,last)\&. .PP Definition at line 186 of file ext/memory\&. .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 190 of file ext/memory\&. .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 151 of file stl_tempbuf\&.h\&. .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 156 of file stl_tempbuf\&.h\&. .PP References std::_Destroy(), std::_Temporary_buffer< _ForwardIterator, _Tp >::_Temporary_buffer(), and std::return_temporary_buffer()\&. .SS "template size_type \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 146 of file stl_tempbuf\&.h\&. .SS "template size_type \fBstd::_Temporary_buffer\fP< _ForwardIterator, _Tp >::size () const\fC [inline]\fP, \fC [inherited]\fP" .PP As per Table mumble\&. .PP Definition at line 141 of file stl_tempbuf\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.