weak_ptr documentation updated; still a work in progress.

[SVN r16748]
This commit is contained in:
Peter Dimov
2003-01-04 14:24:14 +00:00
parent 987a7d32fb
commit 3e616752c9
4 changed files with 186 additions and 165 deletions

View File

@@ -5,7 +5,7 @@
// shared_ptr.hpp
//
// (C) Copyright Greg Colvin and Beman Dawes 1998, 1999.
// Copyright (c) 2001, 2002 Peter Dimov
// Copyright (c) 2001, 2002, 2003 Peter Dimov
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all copies.

View File

@@ -4,7 +4,7 @@
//
// weak_ptr.hpp
//
// Copyright (c) 2001, 2002 Peter Dimov
// Copyright (c) 2001, 2002, 2003 Peter Dimov
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all copies.
@@ -37,7 +37,7 @@ public:
typedef T element_type;
weak_ptr(): px(0), pn()
weak_ptr(): px(0), pn() // never throws in 1.30+
{
}
@@ -92,7 +92,7 @@ public:
#endif
void reset()
void reset() // never throws in 1.30+
{
this_type().swap(*this);
}