PageRenderTime 25ms CodeModel.GetById 0ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Swig | 18 lines | 13 code | 5 blank | 0 comment | 0 complexity | 9947a3e22652c9e76b175848741d6b6a MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module("templatereduce") template_typedef_ns
  2. %inline {
  3. namespace Alpha {
  4. typedef int Integer;
  5. }
  6. namespace Beta {
  7. template <typename Value>
  8. struct Alpha {
  9. Value x;
  10. };
  11. }
  12. }
  13. %template(AlphaInt) Beta::Alpha<Alpha::Integer>;