Added new reset()-counterparts for the new ctors

[SVN r44777]
This commit is contained in:
Daniel Frey
2008-04-26 15:42:13 +00:00
parent 7dc6b3d810
commit 6f8dc5923c

View File

@@ -390,6 +390,18 @@ public:
this_type( r, p ).swap( *this );
}
void reset( detail::shared_count const & c, T * p )
{
this_type( c, p ).swap( *this );
}
#if defined( BOOST_HAS_RVALUE_REFS )
void reset( detail::shared_count && c, T * p )
{
this_type( static_cast< detail::shared_count && >( c ), p ).swap( *this );
}
#endif
reference operator* () const // never throws
{
BOOST_ASSERT(px != 0);