ADC Home > Reference Library > Reference > Darwin > Miscellaneous User Space API Reference

 


boost_memory.h

Introduction

This is an internal header file, included by other library headers. You should not attempt to use it directly.



COM Interfaces

__unspecified_bool_type


Functions

_Sp_counted_base_impl
const_pointer_cast
dynamic_pointer_cast
static_pointer_cast
swap(tr1 :: shared_ptr _Tp &, tr1 :: shared_ptr _Tp &)
swap(tr1 :: weak_ptr _Tp &, tr1 :: weak_ptr _Tp &)

_Sp_counted_base_impl


_Sp_counted_base_impl(
    _Ptr __p,
    _Deleter __d) : _M_ptr(
    __p), _M_del(
    __d) 
Discussion

@brief @pre d(p) must not throw.


const_pointer_cast


template <typename _Tp, typename _Tp1> shared_ptr<_Tp> const_pointer_cast(
    const shared_ptr<_Tp1>& __r) 
Discussion

@warning The seemingly equivalent shared_ptr(const_cast(r.get())) will eventually result in undefined behaviour, attempting to delete the same object twice.


dynamic_pointer_cast


template <typename _Tp, typename _Tp1> shared_ptr<_Tp> dynamic_pointer_cast(
    const shared_ptr<_Tp1>& __r) 
Discussion

@warning The seemingly equivalent shared_ptr(dynamic_cast(r.get())) will eventually result in undefined behaviour, attempting to delete the same object twice.


static_pointer_cast


template <typename _Tp, typename _Tp1> shared_ptr<_Tp> static_pointer_cast(
    const shared_ptr<_Tp1>& __r) 
Discussion

@warning The seemingly equivalent shared_ptr(static_cast(r.get())) will eventually result in undefined behaviour, attempting to delete the same object twice.


swap(tr1 :: shared_ptr _Tp &, tr1 :: shared_ptr _Tp &)


template <typename _Tp> inline void swap(
    tr1::shared_ptr<_Tp>& __a,
    tr1::shared_ptr<_Tp>& __b) 
Discussion

@brief std::swap() specialisation for shared_ptr. @relates shared_ptr.


swap(tr1 :: weak_ptr _Tp &, tr1 :: weak_ptr _Tp &)


template <typename _Tp> void swap(
    tr1::weak_ptr<_Tp>& __a,
    tr1::weak_ptr<_Tp>& __b) 
Discussion

@brief std::swap() specialisation for weak_ptr. @relates weak_ptr.

Last Updated: 2006-06-20