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.

37 lines
865 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. * 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 t, U u);
  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. }