PageRenderTime 49ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. // valuewrapper.i
  2. %module valuewrapper
  3. %inline %{
  4. template <typename T> struct X {
  5. X(int) {}
  6. };
  7. template <typename T> struct Y {
  8. Y() {}
  9. int spam(T t = T(0)) { return 0; }
  10. };
  11. %}
  12. %template(Xi) X<int>;
  13. %template(YXi) Y< X<int> >;