1 %module cpp11_std_unordered_map 2 3 %include <std_string.i> 4 %include <std_unordered_map.i> 5 6 %template(UnorderedMapIntInt) std::unordered_map<int, int>; 7 %template(UnorderedMapStringInt) std::unordered_map<std::string, int>; 8 9 %inline %{ inout(std::unordered_map<std::string,int> m)10std::unordered_map<std::string, int, std::hash< std::string >,std::equal_to< std::string >,std::allocator< std::pair< std::string const,int > > > inout(std::unordered_map<std::string, int> m) { return m; } 11 %} 12