PageRenderTime 45ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-25/SWIG/Lib/tcl/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
  1. //
  2. // SWIG typemaps for std::pair
  3. // Luigi Ballabio
  4. // July 2003
  5. //
  6. // Common implementation
  7. %include std_common.i
  8. %include exception.i
  9. // ------------------------------------------------------------------------
  10. // std::pair
  11. // ------------------------------------------------------------------------
  12. %{
  13. #include <utility>
  14. %}
  15. namespace std {
  16. template<class T, class U> struct pair {
  17. pair();
  18. pair(T first, U second);
  19. pair(const pair& p);
  20. template <class U1, class U2> pair(const pair<U1, U2> &p);
  21. T first;
  22. U second;
  23. };
  24. // add specializations here
  25. }