Scilab: add STL list example

This commit is contained in:
Simon Marchetto 2013-07-19 18:01:18 +02:00
commit ef48783589
5 changed files with 144 additions and 0 deletions

View 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"