PageRenderTime 29ms CodeModel.GetById 23ms app.highlight 5ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1.3.35/Lib/java/std_pair.i

#
Swig | 37 lines | 19 code | 10 blank | 8 comment | 0 complexity | 66863145b3f66d44583fd0c2c9570e51 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 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}