Homepage > Man Pages > Category > Subroutines
Homepage > Man Pages > Name > Other

__gnu_cxx::temporary_buffer -

man page of __gnu_cxx::temporary_buffer -

__gnu_cxx::temporary_buffer -: __gnu_cxx

NAME
__gnu_cxx::temporary_buffer -
SYNOPSIS
Inherits std::_Temporary_buffer< _ForwardIterator, _Tp >. Public Types typedef pointer iterator typedef value_type * pointer typedef ptrdiff_t size_type typedef _Tp value_type Public Member Functions temporary_buffer (_ForwardIterator __first, _ForwardIterator __last) ~temporary_buffer () iterator begin () iterator end () size_type requested_size () const size_type size () const Protected Attributes pointer _M_buffer size_type _M_len size_type _M_original_len

DETAILED DESCRIPTION

template<class _ForwardIterator, class _Tp = typename std::iterator_traits<_ForwardIterator>::value_type>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. 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 184 of file ext/memory.

CONSTRUCTOR & DESTRUCTOR DOCUMENTATION

template<class _ForwardIterator , class _Tp = typename std::iterator_traits<_ForwardIterator>::value_type> __gnu_cxx::temporary_buffer< _ForwardIterator, _Tp >::temporary_buffer (_ForwardIterator__first, _ForwardIterator__last) [inline] Requests storage large enough to hold a copy of [first,last). Definition at line 187 of file ext/memory. template<class _ForwardIterator , class _Tp = typename std::iterator_traits<_ForwardIterator>::value_type> __gnu_cxx::temporary_buffer< _ForwardIterator, _Tp >::~temporary_buffer () [inline] Destroys objects and frees storage. Definition at line 191 of file ext/memory.

MEMBER FUNCTION DOCUMENTATION

template<typename _ForwardIterator, typename _Tp> iterator std::_Temporary_buffer< _ForwardIterator, _Tp >::begin () [inline, inherited] As per Table mumble. Definition at line 152 of file stl_tempbuf.h. Referenced by std::inplace_merge(), std::stable_partition(), and std::stable_sort(). template<typename _ForwardIterator, typename _Tp> iterator std::_Temporary_buffer< _ForwardIterator, _Tp >::end () [inline, inherited] As per Table mumble. Definition at line 157 of file stl_tempbuf.h. template<typename _ForwardIterator, typename _Tp> size_type std::_Temporary_buffer< _ForwardIterator, _Tp >::requested_size () const [inline, inherited] Returns the size requested by the constructor; may be >size(). Definition at line 147 of file stl_tempbuf.h. Referenced by std::stable_partition(). template<typename _ForwardIterator, typename _Tp> size_type std::_Temporary_buffer< _ForwardIterator, _Tp >::size () const [inline, inherited] As per Table mumble. Definition at line 142 of file stl_tempbuf.h. Referenced by std::inplace_merge(), std::stable_partition(), and std::stable_sort().

AUTHOR

Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Mon Jul 25 __GNU_CXX::TEMPORARY_BUFFER -(3)
 
 
 

Copyright © 2011–2018 by topics-of-interest.com . All rights reserved. Hosted by all-inkl.
Contact · Imprint · Privacy

Page generated in 36.94ms.

kostenlose Artikel | meinehunde.net | www.daelim-forum.com