PageRenderTime 37ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Lib/tcl/std_pair.i

#
Swig | 34 lines | 19 code | 10 blank | 5 comment | 0 complexity | bb79112c8ede6aab515bc4c35d4a17eb MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. /* -----------------------------------------------------------------------------
  2. * std_pair.i
  3. *
  4. * Typemaps for std::pair
  5. * ----------------------------------------------------------------------------- */
  6. %include <std_common.i>
  7. %include <exception.i>
  8. // ------------------------------------------------------------------------
  9. // std::pair
  10. // ------------------------------------------------------------------------
  11. %{
  12. #include <utility>
  13. %}
  14. namespace std {
  15. template<class T, class U> struct pair {
  16. pair();
  17. pair(T first, U second);
  18. pair(const pair& p);
  19. template <class U1, class U2> pair(const pair<U1, U2> &p);
  20. T first;
  21. U second;
  22. };
  23. // add specializations here
  24. }