%module li_std_pair_using %include using std::pair; %template(StringStringPair) pair; %inline %{ typedef int Integer; using std::string; %} %template(StringIntPair) pair; %inline %{ typedef std::string String; typedef string Streeng; std::pair bounce(std::pair p) { return p; } %}