/tags/rel-1-3-25/SWIG/Examples/test-suite/valuewrapper.i
Swig | 17 lines | 13 code | 4 blank | 0 comment | 0 complexity | c02fbc1a585512528d6c052a19ee6146 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
1// valuewrapper.i 2%module valuewrapper 3 4%inline %{ 5template <typename T> struct X { 6 X(int) {} 7}; 8 9template <typename T> struct Y { 10 Y() {} 11 int spam(T t = T(0)) { return 0; } 12}; 13%} 14 15%template(Xi) X<int>; 16%template(YXi) Y< X<int> >; 17