template example working, sorry forgot to commit it earlier

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4531 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2003-03-12 22:48:02 +00:00
commit ee4b63a60a
5 changed files with 120 additions and 0 deletions

View file

@ -0,0 +1,17 @@
/* File : example.i */
%module example
%{
#include "example.h"
%}
/* Let's just grab the original header file here */
%include "example.h"
/* Now instantiate some specific template declarations */
%template(maxint) max<int>;
%template(maxdouble) max<double>;
%template(vecint) vector<int>;
%template(vecdouble) vector<double>;