Scilab: add STL list example
This commit is contained in:
parent
f09525bcd8
commit
ef48783589
5 changed files with 144 additions and 0 deletions
18
Examples/scilab/std_list/example.i
Normal file
18
Examples/scilab/std_list/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(IntList) list<int>;
|
||||
%template(StringList) list<std::string>;
|
||||
}
|
||||
|
||||
%include "example.hxx"
|
||||
Loading…
Add table
Add a link
Reference in a new issue