1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
%module("templatereduce") template_typedef_ns %inline { namespace Alpha { typedef int Integer; } namespace Beta { template <typename Value> struct Alpha { Value x; }; } } %template(AlphaInt) Beta::Alpha<Alpha::Integer>;