import source from 1.3.40
[external/swig.git] / Examples / test-suite / stl_new.i
1 %module stl_new
2
3 %include <std_vector.i>
4 %include <std_deque.i>
5 %include <std_list.i>
6 %include <std_set.i>
7 %include <std_map.i>
8
9 %template(Vector  ) std::vector  <swig::LANGUAGE_OBJ>;
10 %template(Deque   ) std::deque   <swig::LANGUAGE_OBJ>;
11 %template(List    ) std::list    <swig::LANGUAGE_OBJ>;
12
13 %template(Set     ) std::set     <swig::LANGUAGE_OBJ,
14                                   swig::BinaryPredicate<> >;
15 %template(Map     ) std::map     <swig::LANGUAGE_OBJ,swig::LANGUAGE_OBJ,
16                                    swig::BinaryPredicate<> >;
17
18
19 // %inline %{
20 //     namespace swig {
21 //         void nth_element(swig::Iterator_T< _Iter>& first,
22 //                          swig::Iterator_T< _Iter>& nth,
23 //                          swig::Iterator_T< _Iter>& last,
24 //                          const swig::BinaryPredicate<>& comp = swig::BinaryPredicate<>())
25 //         {
26 //        std::nth_element( first, nth, last, comp);
27 //         }
28 //     }
29 // %}