Added std::pair wrappers for C#
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7220 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1f6afbffa6
commit
b7ff842e59
1 changed files with 35 additions and 0 deletions
35
Lib/csharp/std_pair.i
Normal file
35
Lib/csharp/std_pair.i
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
//
|
||||
// SWIG typemaps for std::pair
|
||||
// Luigi Ballabio
|
||||
// July 2003
|
||||
//
|
||||
// Common implementation
|
||||
|
||||
%include std_common.i
|
||||
%include exception.i
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// std::pair
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
%{
|
||||
#include <utility>
|
||||
%}
|
||||
|
||||
namespace std {
|
||||
|
||||
template<class T, class U> struct pair {
|
||||
|
||||
pair();
|
||||
pair(T t, U u);
|
||||
pair(const pair& p);
|
||||
|
||||
template <class U1, class U2> pair(const pair<U1, U2> &p);
|
||||
|
||||
T first;
|
||||
U second;
|
||||
};
|
||||
|
||||
// add specializations here
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue