PageRenderTime 35ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-29/SWIG/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
  1. /* -----------------------------------------------------------------------------
  2. * See the LICENSE file for information on copyright, usage and redistribution
  3. * of SWIG, and the README file for authors - http://www.swig.org/release.html.
  4. *
  5. * std_pair.i
  6. *
  7. * SWIG typemaps for std::pair
  8. * ----------------------------------------------------------------------------- */
  9. %include <std_common.i>
  10. %include <exception.i>
  11. // ------------------------------------------------------------------------
  12. // std::pair
  13. // ------------------------------------------------------------------------
  14. %{
  15. #include <utility>
  16. %}
  17. namespace std {
  18. template<class T, class U> struct pair {
  19. pair();
  20. pair(T first, U second);
  21. pair(const pair& p);
  22. template <class U1, class U2> pair(const pair<U1, U2> &p);
  23. T first;
  24. U second;
  25. };
  26. // add specializations here
  27. }