_Temporary_buffer Class Reference

class _Temporary_buffer
Public Member Functions
_Temporary_buffer (_ForwardIterator, _ForwardIterator)
~_Temporary_buffer ()
_Tp * begin ()
_Tp * end ()
ptrdiff_t requested_size ()
ptrdiff_t size ()
Private Member Functions
_Temporary_buffer (const _Temporary_buffer < _ForwardIterator, _Tp > &)
void _M_allocate_buffer ()
void _M_initialize_buffer (const _Tp &, const __true_type &)
void _M_initialize_buffer (const _Tp &, const __false_type &)
void operator= (const _Temporary_buffer < _ForwardIterator, _Tp > &)
Private Attributes
_Tp * _M_buffer
ptrdiff_t _M_len
ptrdiff_t _M_original_len

Constructor & Destructor Documentation

_Temporary_buffer(_ForwardIterator, _ForwardIterator)

_Temporary_buffer ( _ForwardIterator __first,
_ForwardIterator __last
) [inline]

Parameters

_ForwardIterator __first
_ForwardIterator __last

_Temporary_buffer(const _Temporary_buffer< _ForwardIterator, _Tp > &)

_Temporary_buffer ( const _Temporary_buffer < _ForwardIterator, _Tp > & ) [private, inline]

Parameters

const _Temporary_buffer < _ForwardIterator, _Tp > &

~_Temporary_buffer()

~_Temporary_buffer ( ) [inline]

Member Functions Documentation

_M_allocate_buffer()

void _M_allocate_buffer ( ) [private, inline]

_M_initialize_buffer(const _Tp &, const __true_type &)

void _M_initialize_buffer ( const _Tp & ,
const __true_type &
) [private, inline]

Parameters

const _Tp &
const __true_type &

_M_initialize_buffer(const _Tp &, const __false_type &)

void _M_initialize_buffer ( const _Tp & val,
const __false_type &
) [private, inline]

Parameters

const _Tp & val
const __false_type &

begin()

_Tp * begin ( ) [inline]

end()

_Tp * end ( ) [inline]

operator=(const _Temporary_buffer< _ForwardIterator, _Tp > &)

void operator= ( const _Temporary_buffer < _ForwardIterator, _Tp > & ) [private, inline]

Parameters

const _Temporary_buffer < _ForwardIterator, _Tp > &

requested_size()

ptrdiff_t requested_size ( ) const [inline]

size()

ptrdiff_t size ( ) const [inline]

Member Data Documentation

_Tp * _M_buffer

_Tp * _M_buffer [private]

ptrdiff_t _M_len

ptrdiff_t _M_len [private]

ptrdiff_t _M_original_len

ptrdiff_t _M_original_len [private]