/trunk/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
- %module template_partial_arg
- %inline %{
- template <class T> class Foo {
- public:
- T bar() { return T(); }
- T* baz() { return 0; }
- };
- template <class T> class Foo<T*> {
- public:
- T bar() { return T(); }
- T* baz() { return 0; }
- };
- class Bar {};
- %}
- %template(Foo1) Foo<Bar>;
- %template(Foo2) Foo<Bar*>;