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 * std::pair typemaps for LUA
8 * ----------------------------------------------------------------------------- */
9
10%{
11#include <utility>
12%}
13/*
14A really cut down version of the pair class.
15
16this is not useful on its owns is it needs a %template definition with it
17
18eg.
19namespace std {
20    %template(IntPair) pair<int, int>;
21    %template(make_IntPair) make_pair<int, int>;
22}
23
24
25*/
26
27
28
29namespace std {
30  template <class T, class U > struct pair {
31    typedef T first_type;
32    typedef U second_type;
33
34    pair();
35    pair(T first, U second);
36    pair(const pair& p);
37
38    T first;
39    U second;
40  };
41
42  template <class T, class U >
43  pair<T,U> make_pair(const T&,const U&);
44
45}
46