swig/Examples/ocaml/std_vector/example.i
Art Yerkes b770c69ebc Examples updated.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5206 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-25 06:24:43 +00:00

15 lines
362 B
C++

/* -*- 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"