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

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

#
Swig | 26 lines | 16 code | 10 blank | 0 comment | 0 complexity | af1b0a14da21cfe43b2b53f19c9b52b4 MD5 | raw file
 1%module template_arg_typename
 2
 3%inline %{
 4
 5
 6  template <class ArgType, class ResType>
 7  struct UnaryFunction 
 8  {
 9    typedef void* vptr_type;
10  };
11
12  template <class ArgType>
13  struct BoolUnaryFunction : UnaryFunction<ArgType, bool>
14			     
15  {
16    typedef UnaryFunction<ArgType, bool> base;
17    BoolUnaryFunction(const typename base::vptr_type* vptrf) {}
18
19  };
20
21
22%}
23
24
25%template(UnaryFunction_bool_bool) UnaryFunction<bool, bool>;
26%template(BoolUnaryFunction_bool) BoolUnaryFunction<bool>;