1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 // REQUIRES: c++03 || c++11 || c++14
11 // unary_function was removed in C++17
13 // template <class Arg, class Result>
14 // struct unary_function
16 // typedef Arg argument_type;
17 // typedef Result result_type;
21 #include <type_traits>
23 #include "test_macros.h"
27 static_assert((std::is_same
<std::unary_function
<unsigned, char>::argument_type
, unsigned>::value
), "");
28 static_assert((std::is_same
<std::unary_function
<unsigned, char>::result_type
, char>::value
), "");