1 2 3 4 5 6 7 8 9
%module xxx %template(abc) SSS::AAA<int>; namespace UUU { struct JJJ; } %template(xxx) UUU::JJJ<int>;