xref: /freebsd-src/contrib/llvm-project/libcxx/include/__functional/binary_function.h (revision fe6060f10f634930ff71b7c50291ddc610da2475)
1*fe6060f1SDimitry Andric // -*- C++ -*-
2*fe6060f1SDimitry Andric //===----------------------------------------------------------------------===//
3*fe6060f1SDimitry Andric //
4*fe6060f1SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5*fe6060f1SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
6*fe6060f1SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7*fe6060f1SDimitry Andric //
8*fe6060f1SDimitry Andric //===----------------------------------------------------------------------===//
9*fe6060f1SDimitry Andric 
10*fe6060f1SDimitry Andric #ifndef _LIBCPP___FUNCTIONAL_BINARY_FUNCTION_H
11*fe6060f1SDimitry Andric #define _LIBCPP___FUNCTIONAL_BINARY_FUNCTION_H
12*fe6060f1SDimitry Andric 
13*fe6060f1SDimitry Andric #include <__config>
14*fe6060f1SDimitry Andric 
15*fe6060f1SDimitry Andric #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
16*fe6060f1SDimitry Andric #pragma GCC system_header
17*fe6060f1SDimitry Andric #endif
18*fe6060f1SDimitry Andric 
19*fe6060f1SDimitry Andric _LIBCPP_BEGIN_NAMESPACE_STD
20*fe6060f1SDimitry Andric 
21*fe6060f1SDimitry Andric template <class _Arg1, class _Arg2, class _Result>
22*fe6060f1SDimitry Andric struct _LIBCPP_TEMPLATE_VIS binary_function
23*fe6060f1SDimitry Andric {
24*fe6060f1SDimitry Andric     typedef _Arg1   first_argument_type;
25*fe6060f1SDimitry Andric     typedef _Arg2   second_argument_type;
26*fe6060f1SDimitry Andric     typedef _Result result_type;
27*fe6060f1SDimitry Andric };
28*fe6060f1SDimitry Andric 
29*fe6060f1SDimitry Andric _LIBCPP_END_NAMESPACE_STD
30*fe6060f1SDimitry Andric 
31*fe6060f1SDimitry Andric #endif // _LIBCPP___FUNCTIONAL_BINARY_FUNCTION_H
32