summaryrefslogtreecommitdiff
path: root/Examples/octave/template/example.i
blob: 3c57f3884f07f222ce99b34102a4aadd595da276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* File : example.i */
%module swigexample

%feature("autodoc", 1);

%{
#include "example.h"
%}

/* Let's just grab the original header file here */
%include "example.h"

/* Now instantiate some specific template declarations */

%template(maxint) max<int>;
%template(maxdouble) max<double>;
%template(vecint) vector<int>;
%template(vecdouble) vector<double>;