blob: fe45ee676ca96d529fbf30cfbc11f9c9d393dc57 [file] [log] [blame]
Alice Chingc9602282014-03-05 12:03:26 -08001/* -----------------------------------------------------------------------------
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}