Documentation updated to reflect changes to shared_ptr

[SVN r16739]
This commit is contained in:
Peter Dimov
2003-01-03 16:53:04 +00:00
parent fafd9a863b
commit 987a7d32fb
2 changed files with 117 additions and 150 deletions
+4 -2
View File
@@ -106,7 +106,7 @@ public:
typedef T * pointer;
typedef typename detail::shared_ptr_traits<T>::reference reference;
shared_ptr(): px(0), pn()
shared_ptr(): px(0), pn() // never throws in 1.30+
{
}
@@ -211,7 +211,7 @@ public:
#endif
void reset()
void reset() // never throws in 1.30+
{
this_type().swap(*this);
}
@@ -253,6 +253,8 @@ public:
return px == 0? 0: &this_type::get;
}
// operator! is redundant, but some compilers need it
bool operator! () const // never throws
{
return px == 0;