dwww Home | Show directory contents | Find package

%module template_using

%inline 
{
  
namespace foo {
  template<typename T> class Foo { };
  template<typename T> T maxk(T a, T b) { return a > b ? a : b; }
}
using foo::maxk;
 
}

%template(maxint)   foo::maxk<int>;   
%template(Foofloat) foo::Foo<float>;
%template(maxfloat) maxk<float>;    

Generated by dwww version 1.15 on Tue Jul 2 00:52:04 CEST 2024.