add missing file omitted in earlier commit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11238 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
096aaddfcf
commit
69890f4957
1 changed files with 25 additions and 0 deletions
25
Examples/test-suite/li_std_multimap.i
Normal file
25
Examples/test-suite/li_std_multimap.i
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
%module("templatereduce") li_std_multimap
|
||||
|
||||
%feature("trackobjects");
|
||||
|
||||
%include std_pair.i
|
||||
%include std_map.i
|
||||
%include std_multimap.i
|
||||
|
||||
%inline %{
|
||||
struct A{
|
||||
int val;
|
||||
|
||||
A(int v = 0): val(v)
|
||||
{
|
||||
}
|
||||
|
||||
};
|
||||
%}
|
||||
|
||||
namespace std
|
||||
{
|
||||
%template(pairA) pair<int, A*>;
|
||||
%template(mapA) map<int, A*>;
|
||||
%template(multimapA) multimap<int, A*>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue