PageRenderTime 19ms CodeModel.GetById 18ms app.highlight 0ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-25/SWIG/Lib/tcl/std_pair.i

#
Swig | 35 lines | 25 code | 10 blank | 0 comment | 0 complexity | 7e06357b8eca371cf6a6cda481480e9a 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 first, U second);
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}