Update docs for shared_ptr

This commit is contained in:
William S Fulton 2015-10-01 20:30:09 +01:00
commit 803ba97a83
6 changed files with 101 additions and 2 deletions

View file

@ -52,6 +52,10 @@
<li><a href="#Java_namespaces">C++ namespaces</a>
<li><a href="#Java_templates">C++ templates</a>
<li><a href="#Java_smart_pointers">C++ Smart Pointers</a>
<ul>
<li><a href="#Java_smart_pointers_shared_ptr">The shared_ptr Smart Pointer</a>
<li><a href="#Java_smart_pointers_generic">Generic Smart Pointers</a>
</ul>
</ul>
<li><a href="#Java_further_details">Further details on the generated Java classes</a>
<ul>
@ -1998,6 +2002,20 @@ More details can be found in the <a href="SWIGPlus.html#SWIGPlus">SWIG and C++</
<H3><a name="Java_smart_pointers"></a>25.3.15 C++ Smart Pointers</H3>
<H4><a name="Java_smart_pointers_shared_ptr"></a>25.3.15.1 The shared_ptr Smart Pointer</H4>
<p>
The C++11 standard provides <tt>std::shared_ptr</tt> which was derived from the Boost
implementation, <tt>boost::shared_ptr</tt>.
Both of these are available for Java in the SWIG library and usage is outlined
in the <a href="Library.html#Library_std_shared_ptr">shared_ptr smart pointer</a> library section.
</p>
<H4><a name="Java_smart_pointers_generic"></a>25.3.15.2 Generic Smart Pointers</H4>
<p>
In certain C++ programs, it is common to use classes that have been wrapped by
so-called "smart pointers." Generally, this involves the use of a template class