PageRenderTime 21ms CodeModel.GetById 17ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Examples/test-suite/li_std_multimap.i

#
Swig | 25 lines | 19 code | 6 blank | 0 comment | 0 complexity | 26423972424ff5de69bfb8409cb7fc27 MD5 | raw file
 1%module("templatereduce") li_std_multimap
 2
 3%feature("trackobjects");
 4
 5%include std_pair.i
 6%include std_map.i
 7%include std_multimap.i
 8
 9%inline %{
10struct A{
11    int val;
12    
13    A(int v = 0): val(v)
14    {
15    }
16
17};
18%}
19
20namespace std
21{
22  %template(pairA) pair<int, A*>;
23  %template(mapA) map<int, A*>;
24  %template(multimapA) multimap<int, A*>;
25}