Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Sacado_mpl_has_equal_to.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Sacado Package
4 //
5 // Copyright 2006 NTESS and the Sacado contributors.
6 // SPDX-License-Identifier: LGPL-2.1-or-later
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef SACADO_MPL_HAS_EQUAL_TO_HPP
11 #define SACADO_MPL_HAS_EQUAL_TO_HPP
12 
13 #include <type_traits>
14 
15 namespace Sacado {
16 
17  namespace mpl {
18 
19  template <typename T1, typename T2 = T1, typename = std::void_t<> >
20  struct has_equal_to : std::false_type {};
21 
22  template <typename T1, typename T2>
23  struct has_equal_to<T1, T2, std::void_t<decltype(std::declval<T1>() ==
24  std::declval<T2>())> >
25  : std::true_type {};
26 
27  }
28 
29 }
30 
31 #endif // SACADO_MPL_HAS_EQUAL_TO_HPP
#define T2(r, f)
Definition: Sacado_rad.hpp:558
#define T1(r, f)
Definition: Sacado_rad.hpp:583