PageRenderTime 25ms CodeModel.GetById 23ms app.highlight 0ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-29/SWIG/Examples/test-suite/template_partial_arg.i

#
Swig | 21 lines | 16 code | 5 blank | 0 comment | 0 complexity | 5cef1873107a5c712f7483eaa537c048 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1%module template_partial_arg
 2
 3%inline %{
 4  template <class T> class Foo {
 5  public: 
 6    T bar() { return T(); }  
 7    T* baz() { return 0; } 
 8  };
 9
10  template <class T> class Foo<T*> {
11  public: 
12    T bar() { return T(); }
13    T* baz() { return 0; }
14  };
15
16  class Bar {};
17%}
18
19%template(Foo1) Foo<Bar>;
20%template(Foo2) Foo<Bar*>;
21