forked from boostorg/smart_ptr
Fix doc errors, add shared_ptr_example program
[SVN r10165]
This commit is contained in:
1 parent
8f23f07740
commit
ac8d0f5505
3 files changed
+105
-25
No files matched your search
+2
-2
@@ -106,7 +106,7 @@ output:</p>
|
||||
Buckle my shoe</pre>
|
||||
</blockquote>
|
||||
<h2>Handle/Body Idiom</h2>
|
||||
<p>One common usage of <b>shared_pointer</b> is to implement a handle/body
|
||||
<p>One common usage of <b>scoped_ptr</b> is to implement a handle/body
|
||||
structure which avoids exposing the body (implementation) in the header file:</p>
|
||||
<pre>class handle
|
||||
{
|
||||
@@ -123,7 +123,7 @@ body</code> is not visible at the time scoped_ptr<> deletes it. See ISO
|
||||
5.3.5/5. Note that some compilers will issue a warning even though the
|
||||
above code is well defined.</p>
|
||||
<hr>
|
||||
<p>Revised <!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %B %Y" startspan -->10 May 2001<!--webbot bot="Timestamp" endspan i-checksum="15101" --></p>
|
||||
<p>Revised <!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %B %Y" startspan -->21 May 2001<!--webbot bot="Timestamp" endspan i-checksum="15104" --></p>
|
||||
<p>© Copyright Greg Colvin and Beman Dawes 1999. Permission to copy, use,
|
||||
modify, sell and distribute this document is granted provided this copyright
|
||||
notice appears in all copies. This document is provided "as is"
|
||||
|
||||
Reference in new issue
Block a user