/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
- /* File : example.i */
- %module example
- %{
- #include "example.h"
- %}
- %include stl.i
- /* instantiate the required template specializations */
- namespace std {
- %template(IntVector) vector<int>;
- %template(DoubleVector) vector<double>;
- }
- /* Let's just grab the original header file here */
- %include "example.h"