1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // <functional>
11 
12 // template <class Arg1, class Arg2, class Result>
13 // struct binary_function
14 // {
15 //     typedef Arg1   first_argument_type;
16 //     typedef Arg2   second_argument_type;
17 //     typedef Result result_type;
18 // };
19 
20 #include <functional>
21 #include <type_traits>
22 
main()23 int main()
24 {
25     static_assert((std::is_same<std::binary_function<int, unsigned, char>::first_argument_type, int>::value), "");
26     static_assert((std::is_same<std::binary_function<int, unsigned, char>::second_argument_type, unsigned>::value), "");
27     static_assert((std::is_same<std::binary_function<int, unsigned, char>::result_type, char>::value), "");
28 }
29