PageRenderTime 39ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Lib/php/std_pair.i

#
Swig | 34 lines | 19 code | 10 blank | 5 comment | 0 complexity | 222bb7eec70835374e45d0c8b96a9d02 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. /* -----------------------------------------------------------------------------
  2. * std_pair.i
  3. *
  4. * SWIG 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. }