Add std_shared_ptr.i and document shared_ptr library
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12077 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
84985fa205
commit
36c2e97a1c
7 changed files with 143 additions and 17 deletions
2
Lib/csharp/std_shared_ptr.i
Normal file
2
Lib/csharp/std_shared_ptr.i
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#define SWIG_SHARED_PTR_NAMESPACE std
|
||||
%include <boost_shared_ptr.i>
|
||||
2
Lib/java/std_shared_ptr.i
Normal file
2
Lib/java/std_shared_ptr.i
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#define SWIG_SHARED_PTR_NAMESPACE std
|
||||
%include <boost_shared_ptr.i>
|
||||
2
Lib/python/std_shared_ptr.i
Normal file
2
Lib/python/std_shared_ptr.i
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#define SWIG_SHARED_PTR_NAMESPACE std
|
||||
%include <boost_shared_ptr.i>
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
// This is a helper file for shared_ptr and should not be included directly.
|
||||
|
||||
// The main implementation detail in using this smart pointer of a type is to customise the code generated
|
||||
// to use a pointer to the smart pointer of the type, rather than the usual pointer to the underlying type.
|
||||
// So for some type T, shared_ptr<T> * is used rather than T *.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue