PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Examples/test-suite/valuewrapper.i

#
Swig | 17 lines | 13 code | 4 blank | 0 comment | 0 complexity | c02fbc1a585512528d6c052a19ee6146 MD5 | raw file
 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