1 // Copyright (c) 2017
2 // Utrecht University (The Netherlands),
3 // ETH Zurich (Switzerland),
4 // INRIA Sophia-Antipolis (France),
5 // Max-Planck-Institute Saarbruecken (Germany),
6 // and Tel-Aviv University (Israel).  All rights reserved.
7 //
8 // This file is part of CGAL (www.cgal.org)
9 //
10 // $URL: https://github.com/CGAL/cgal/blob/v5.3/STL_Extension/include/CGAL/functional.h $
11 // $Id: functional.h 0779373 2020-03-26T13:31:46+01:00 Sébastien Loriot
12 // SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
13 //
14 //
15 // Author(s)     : Andreas Fabri
16 
17 #ifndef CGAL_FUNCTIONAL_H
18 #define CGAL_FUNCTIONAL_H
19 
20 namespace CGAL {
21 
22 namespace cpp98 {
23 
24   /// Replacement for `std::unary_function` that is deprecated since C++11,
25   /// and removed from C++17.
26   template < typename ArgumentType, typename ResultType>
27   struct unary_function {
28     typedef ArgumentType argument_type;
29     typedef ResultType result_type;
30   };
31 
32   /// Replacement for `std::binary_function` that is deprecated since C++11,
33   /// and removed from C++17.
34   template < typename Arg1, typename Arg2, typename Result>
35   struct binary_function {
36     typedef Arg1 first_argument_type;
37     typedef Arg2 second_argument_type;
38     typedef Result result_type;
39   };
40 
41 } // namespace cpp98
42 
43 } // namespace CGAL
44 
45 #endif // CGAL_FUNCTIONAL_H
46