binary_function.pass.cpp 719 B

1234567891011121314151617181920212223
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. // <functional>
  10. // binary_function
  11. #include <functional>
  12. #include <type_traits>
  13. int main()
  14. {
  15. typedef std::binary_function<int, short, bool> bf;
  16. static_assert((std::is_same<bf::first_argument_type, int>::value), "");
  17. static_assert((std::is_same<bf::second_argument_type, short>::value), "");
  18. static_assert((std::is_same<bf::result_type, bool>::value), "");
  19. }