Source code of Windows XP (NT5)
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.

36 lines
873 B

  1. //==========================================================================;
  2. //
  3. // stextend.h : extensions to vc++ 5.0 stl templates
  4. // Copyright (c) Microsoft Corporation 1997.
  5. //
  6. /////////////////////////////////////////////////////////////////////////////
  7. #pragma once
  8. #ifndef STEXTEND_H
  9. #define STEXTEND_H
  10. #include <utility>
  11. #include <functional>
  12. #if 1
  13. #include <arity.h> //generated .h from aritygen
  14. #else
  15. #include <stx.h> // old one from win98
  16. #endif
  17. #pragma warning(disable:4503)
  18. #pragma warning(disable:4181)
  19. template<class _T1, class _T2> inline
  20. bool __cdecl operator!(const std::pair<_T1, _T2>& _X)
  21. {return ((!(_X.first)) && (!(_X.second))); }
  22. template<class Ty1, class Ty2> struct equal_to2 : std::binary_function<Ty1, Ty2, bool> {
  23. bool operator()(const Ty1& X, const Ty2& Y) const {return (X == Y); }
  24. };
  25. #endif
  26. // end of file stextend.h