ADC Home > Reference Library > Reference > Darwin > Miscellaneous User Space API Reference
|
stl_construct.h |
Includes: |
This is an internal header file, included by other library headers. You should not attempt to use it directly.
__destroy_aux( _ForwardIterator, _ForwardIterator, __true_type) |
template<typename _ForwardIterator> inline void __destroy_aux( _ForwardIterator, _ForwardIterator, __true_type)
@if maint
Destroy a range of objects with trivial destructors. Since the destructors
are trivial, there's nothing to do and hopefully this function will be
entirely optimized away.
This is a helper function used only by _Destroy().
@endif
__destroy_aux(_ForwardIterator, _ForwardIterator, __false_type) |
template<typename _ForwardIterator> inline void __destroy_aux( _ForwardIterator __first, _ForwardIterator __last, __false_type)
@if maint
Destroy a range of objects with nontrivial destructors.
This is a helper function used only by _Destroy().
@endif
_Construct(_T1 *) |
template<typename _T1> inline void _Construct( _T1*__p)
@if maint Constructs an object in existing memory by invoking an allocated object's default constructor (no initializers). @endif
_Construct(_T1 *, const _T2 &) |
template<typename _T1, typename _T2> inline void _Construct( _T1*__p, const _T2& __value)
@if maint Constructs an object in existing memory by invoking an allocated object's constructor with an initializer. @endif
_Destroy |
template<typename _Tp> inline void _Destroy( _Tp*__pointer)
@if maint Destroy the object pointed to by a pointer type. @endif
_Destroy |
template<typename _ForwardIterator> inline void _Destroy( _ForwardIterator __first, _ForwardIterator __last)
@if maint Destroy a range of objects. If the value_type of the object has a trivial destructor, the compiler should optimize all of this away, otherwise the objects' destructors must be invoked. @endif