projects
/
external
/
swig.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
import source from 1.3.40
[external/swig.git]
/
Examples
/
test-suite
/
template_using.i
1
%module template_using
2
3
%inline
4
{
5
6
namespace foo {
7
template<typename T> class Foo { };
8
template<typename T> T maxk(T a, T b) { return a > b ? a : b; }
9
}
10
using foo::maxk;
11
12
}
13
14
%template(maxint) foo::maxk<int>;
15
%template(Foofloat) foo::Foo<float>;
16
%template(maxfloat) maxk<float>;
17