PageRenderTime 41ms CodeModel.GetById 18ms app.highlight 12ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/rel-1.3.35/Examples/test-suite/template_ref_type.i

#
Swig | 27 lines | 21 code | 6 blank | 0 comment | 0 complexity | ffa1112f4e452cde63343a19dba30fba MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1%module template_ref_type
 2
 3%inline %{
 4class X {
 5public:
 6    unsigned _i;
 7};
 8
 9template <class T> class Container {
10public:
11    Container () {}
12    bool reset () { return false ;}
13};
14
15typedef Container<X> XC;
16%}
17
18%template(XC) Container<X>;
19
20%inline %{
21class Y {
22public:
23    Y () {};
24    bool find (XC &) { return false; }
25};
26%}
27