unary_function.pass.cpp 625 B

12345678910111213141516171819202122
  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. // unary_function
  11. #include <functional>
  12. #include <type_traits>
  13. int main()
  14. {
  15. typedef std::unary_function<int, bool> uf;
  16. static_assert((std::is_same<uf::argument_type, int>::value), "");
  17. static_assert((std::is_same<uf::result_type, bool>::value), "");
  18. }