Home | History | Annotate | Download | only in perl5
      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 
     18 namespace std {
     19 
     20   template<class T, class U> struct pair {
     21 
     22     pair();
     23     pair(T t, U u);
     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 }
     35