summaryrefslogtreecommitdiff
path: root/Examples/test-suite/template_ref_type.i
blob: a41d006ef39ae5e94f217633cc5287562885e25b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
%module template_ref_type

%inline %{
class X {
public:
    unsigned _i;
};

template <class T> class Container {
public:
    Container () {}
    bool reset () { return false ;}
};

typedef Container<X> XC;
%}

%template(XC) Container<X>;

%inline %{
class Y {
public:
    Y () {};
    bool find (XC &) { return false; }
};
%}