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

# · Swig · 20 lines · 18 code · 2 blank · 0 comment · 0 complexity · b151b6fcfdf79970b2f71c59386d93e7 MD5 · raw file

  1. %module li_std_map_member
  2. %inline %{
  3. int i;
  4. class TestA {
  5. public:
  6. TestA() { i = 1; }
  7. int i;
  8. };
  9. %}
  10. %include std_pair.i
  11. %include std_map.i
  12. namespace std
  13. {
  14. %template(pairii) pair<int,int>;
  15. %template(mapii) map<int,int>;
  16. %template(pairita) pair<int,TestA>;
  17. %template(mapita) map<int,TestA>;
  18. }