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