PageRenderTime 39ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

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

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