/* File : example.i */ %module example %{ #include "example.h" %} %include stl.i %include std_list.i /* instantiate the required template specializations */ namespace std { %template(IntList) list; %template(StringList) list; } %include "example.h"