%module stl_new %include %include %include %include %include %template(Vector ) std::vector ; %template(Deque ) std::deque ; %template(List ) std::list ; %template(Set ) std::set >; %template(Map ) std::map >; // %inline %{ // namespace swig { // void nth_element(swig::Iterator_T< _Iter>& first, // swig::Iterator_T< _Iter>& nth, // swig::Iterator_T< _Iter>& last, // const swig::BinaryPredicate<>& comp = swig::BinaryPredicate<>()) // { // std::nth_element( first, nth, last, comp); // } // } // %}