1/* -----------------------------------------------------------------------------
2 * See the LICENSE file for information on copyright, usage and redistribution
3 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
4 *
5 * std_pair.i
6 *
7 * SWIG typemaps for std::pair
8 * ----------------------------------------------------------------------------- */
9
10%include <std_common.i>
11%include <exception.i>
12
13// ------------------------------------------------------------------------
14// std::pair
15// ------------------------------------------------------------------------
16
17%{
18#include <utility>
19%}
20
21namespace std {
22
23  template<class T, class U> struct pair {
24
25    pair();
26    pair(T first, U second);
27    pair(const pair& p);
28
29    template <class U1, class U2> pair(const pair<U1, U2> &p);
30
31    T first;
32    U second;
33  };
34
35  // add specializations here
36
37}
38