/tags/ttn-post-libtool-1-4-3-upgrade/SWIG/Examples/python/std_vector/example.i
Swig | 17 lines | 10 code | 4 blank | 3 comment | 0 complexity | ebab88acd8bca6d9f05062bdd7465bd0 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
1/* File : example.i */
2%module example
3
4%{
5#include "example.h"
6%}
7
8%include stl.i
9/* instantiate the required template specializations */
10namespace std {
11 %template(IntVector) vector<int>;
12 %template(DoubleVector) vector<double>;
13}
14
15/* Let's just grab the original header file here */
16%include "example.h"
17