/trunk/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
- // valuewrapper.i
- %module valuewrapper
- %inline %{
- template <typename T> struct X {
- X(int) {}
- };
-
- template <typename T> struct Y {
- Y() {}
- int spam(T t = T(0)) { return 0; }
- };
- %}
-
- %template(Xi) X<int>;
- %template(YXi) Y< X<int> >;