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:
William S Fulton 2005-05-25 21:33:53 +00:00
commit b7ff842e59

35
Lib/csharp/std_pair.i Normal file
View 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
}