PageRenderTime 14ms CodeModel.GetById 12ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Lib/ocaml/std_pair.i

#
Swig | 34 lines | 19 code | 10 blank | 5 comment | 0 complexity | 222bb7eec70835374e45d0c8b96a9d02 MD5 | raw file
 1/* -----------------------------------------------------------------------------
 2 * std_pair.i
 3 *
 4 * SWIG typemaps for std::pair
 5 * ----------------------------------------------------------------------------- */
 6
 7%include <std_common.i>
 8%include <exception.i>
 9
10// ------------------------------------------------------------------------
11// std::pair
12// ------------------------------------------------------------------------
13
14%{
15#include <utility>
16%}
17
18namespace std {
19
20  template<class T, class U> struct pair {
21
22    pair();
23    pair(T first, U second);
24    pair(const pair& p);
25
26    template <class U1, class U2> pair(const pair<U1, U2> &p);
27
28    T first;
29    U second;
30  };
31
32  // add specializations here
33
34}