std::pair added (but not very much tested)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8bc6bb533e
commit
8c35d20048
12 changed files with 3782 additions and 0 deletions
31
SWIG/Lib/java/std_pair.i
Normal file
31
SWIG/Lib/java/std_pair.i
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
//
|
||||
// SWIG typemaps for std::pair
|
||||
// Luigi Ballabio
|
||||
// July 2003
|
||||
//
|
||||
// Common implementation
|
||||
|
||||
%include std_common.i
|
||||
%include exception.i
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// std::pair
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
%{
|
||||
#include <utility>
|
||||
%}
|
||||
|
||||
// exported class
|
||||
|
||||
namespace std {
|
||||
|
||||
template<class T, class U> struct pair {
|
||||
// add typemaps here
|
||||
T first;
|
||||
U second;
|
||||
};
|
||||
|
||||
// add specializations here
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue