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(
_Ptr __p,
_Deleter __d) : _M_ptr(
__p), _M_del(
__d)
Discussion
@brief
@pre d(p) must not throw.
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.
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.
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.
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.
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.
|
Did this document help you? |
Yes: Tell us what works for you.
|
|
Last Updated: 2006-06-20