%module nspacemove_stl #if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGD) || defined(SWIGLUA) || defined(SWIGJAVASCRIPT) #if defined(SWIGJAVA) SWIG_JAVABODY_PROXY(public, public, SWIGTYPE) #endif // %nspacemove needed before %include std_vector.i, std_map.i etc so that this nspace targetting the template is attached to the template node %nspacemove(CPlusPlus::Maps) std::map; %include // %nspacemove needed at least before instantiation of the templates %nspacemove(CPlusPlus::Standard::Ints) std::vector; %nspacemove(CPlusPlus::Standard::Strings) std::vector; %template(VectorInt) std::vector; %template(VectorString) std::vector; %template(MapIntInt) std::map; %template(MapIntString) std::map; %inline %{ void test_vector_int(std::vector a) {} void test_vector_string(std::vector a) {} void test_map_int(std::map a) {} void test_map_string(std::map a) {} %} #endif