Added stl example.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4602 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5393751256
commit
2949c006d4
4 changed files with 68 additions and 0 deletions
13
SWIG/Examples/ocaml/stl/example.i
Normal file
13
SWIG/Examples/ocaml/stl/example.i
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
%module example
|
||||
%{
|
||||
#include "example.h"
|
||||
%}
|
||||
|
||||
%include stl.i
|
||||
|
||||
%feature("director");
|
||||
namespace std {
|
||||
%template(StringVector) std::vector<string>;
|
||||
};
|
||||
|
||||
%include example.h
|
||||
Loading…
Add table
Add a link
Reference in a new issue