summaryrefslogtreecommitdiff
path: root/Examples/python/std_vector/example.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/python/std_vector/example.i')
-rw-r--r--Examples/python/std_vector/example.i17
1 files changed, 17 insertions, 0 deletions
diff --git a/Examples/python/std_vector/example.i b/Examples/python/std_vector/example.i
new file mode 100644
index 000000000..aa58b66e0
--- /dev/null
+++ b/Examples/python/std_vector/example.i
@@ -0,0 +1,17 @@
+/* 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"
+