PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Swig | 14 lines | 12 code | 2 blank | 0 comment | 0 complexity | fe5eb15c120ea547151158551968b4f5 MD5 | raw file
 1%module template_const_ref
 2%inline %{
 3template <class T> class Foo {
 4public:
 5	char *bar(const T &obj) {
 6	    return (char *) "Foo::bar";
 7        }
 8};
 9class Bar { };
10%}
11
12%template(Foob) Foo<const Bar *>;
13%template(Fooi) Foo<const int *>;
14