/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
- /* -----------------------------------------------------------------------------
- * See the LICENSE file for information on copyright, usage and redistribution
- * of SWIG, and the README file for authors - http://www.swig.org/release.html.
- *
- * std_pair.i
- *
- * SWIG typemaps for std::pair
- * ----------------------------------------------------------------------------- */
- %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
- }