/tags/rel-1-3-27/SWIG/Lib/php4/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
- //
- // SWIG typemaps for std::pair
- // Luigi Ballabio
- // July 2003
- //
- // Common implementation
- %include std_common.i
- %include exception.i
- // ------------------------------------------------------------------------
- // std::pair
- // ------------------------------------------------------------------------
- %{
- #include <utility>
- %}
- namespace std {
- template<class T, class U> struct pair {
- pair();
- pair(T first, U second);
- pair(const pair& p);
- template <class U1, class U2> pair(const pair<U1, U2> &p);
- T first;
- U second;
- };
- // add specializations here
- }