/tags/rel-1-3-27/SWIG/Lib/csharp/std_pair.i
Swig | 35 lines | 25 code | 10 blank | 0 comment | 0 complexity | 265a3059516becbd61ab8b578ec45d5a MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
1//
2// SWIG typemaps for std::pair
3// Luigi Ballabio
4// July 2003
5//
6// Common implementation
7
8%include std_common.i
9%include exception.i
10
11// ------------------------------------------------------------------------
12// std::pair
13// ------------------------------------------------------------------------
14
15%{
16#include <utility>
17%}
18
19namespace std {
20
21 template<class T, class U> struct pair {
22
23 pair();
24 pair(T t, U u);
25 pair(const pair& p);
26
27 template <class U1, class U2> pair(const pair<U1, U2> &p);
28
29 T first;
30 U second;
31 };
32
33 // add specializations here
34
35}