summaryrefslogtreecommitdiff
path: root/Examples/ocaml/std_vector/example.i
blob: 60285e529b60893c88450029b71f88c9316219cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* -*- C++ -*- */
/* File : example.i -- stolen from the guile std_vector example */
%module example

%{
#include "example.h"
%}

%include stl.i
/* instantiate the required template specializations */
%template(IntVector)    std::vector<int>;
%template(DoubleVector) std::vector<double>;

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