Scilab: update STL set example
Fixes: - use generic support of STL set - add example for set of string
This commit is contained in:
parent
c66952a3f0
commit
1cf1e72e72
9 changed files with 131 additions and 75 deletions
18
Examples/scilab/std_set/example.i
Normal file
18
Examples/scilab/std_set/example.i
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/* File : example.i */
|
||||
|
||||
%module example
|
||||
|
||||
%{
|
||||
#include "example.hxx"
|
||||
%}
|
||||
|
||||
%include stl.i
|
||||
|
||||
/* instantiate the required template specializations */
|
||||
namespace std
|
||||
{
|
||||
%template(IntSet) set<int>;
|
||||
%template(StringSet) set<std::string>;
|
||||
}
|
||||
|
||||
%include "example.hxx"
|
||||
Loading…
Add table
Add a link
Reference in a new issue