Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
933 B

  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. * std::pair typemaps for LUA
  8. * ----------------------------------------------------------------------------- */
  9. %{
  10. #include <utility>
  11. %}
  12. /*
  13. A really cut down version of the pair class.
  14. this is not useful on its owns is it needs a %template definition with it
  15. eg.
  16. namespace std {
  17. %template(IntPair) pair<int, int>;
  18. %template(make_IntPair) make_pair<int, int>;
  19. }
  20. */
  21. namespace std {
  22. template <class T, class U > struct pair {
  23. typedef T first_type;
  24. typedef U second_type;
  25. pair();
  26. pair(T first, U second);
  27. pair(const pair& p);
  28. T first;
  29. U second;
  30. };
  31. template <class T, class U >
  32. pair<T,U> make_pair(const T&,const U&);
  33. }