/trunk/Examples/test-suite/li_std_map_member.i
Swig | 20 lines | 18 code | 2 blank | 0 comment | 0 complexity | b151b6fcfdf79970b2f71c59386d93e7 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %module li_std_map_member
- %inline %{
- int i;
- class TestA {
- public:
- TestA() { i = 1; }
- int i;
- };
- %}
- %include std_pair.i
- %include std_map.i
- namespace std
- {
- %template(pairii) pair<int,int>;
- %template(mapii) map<int,int>;
- %template(pairita) pair<int,TestA>;
- %template(mapita) map<int,TestA>;
- }