Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 09:56:56

0001 /* Copyright 2016-2017 Joaquin M Lopez Munoz.
0002  * Distributed under the Boost Software License, Version 1.0.
0003  * (See accompanying file LICENSE_1_0.txt or copy at
0004  * http://www.boost.org/LICENSE_1_0.txt)
0005  *
0006  * See http://www.boost.org/libs/poly_collection for library home page.
0007  */
0008 
0009 #ifndef BOOST_POLY_COLLECTION_DETAIL_IS_NOTHROW_EQ_COMPARABLE_HPP
0010 #define BOOST_POLY_COLLECTION_DETAIL_IS_NOTHROW_EQ_COMPARABLE_HPP
0011 
0012 #if defined(_MSC_VER)
0013 #pragma once
0014 #endif
0015 
0016 #include <boost/poly_collection/detail/is_equality_comparable.hpp>
0017 #include <type_traits>
0018 #include <utility>
0019 
0020 namespace boost{
0021 
0022 namespace poly_collection{
0023 
0024 namespace detail{
0025 
0026 template<typename T,typename=void>
0027 struct is_nothrow_equality_comparable:std::false_type{};
0028 
0029 template<typename T>
0030 struct is_nothrow_equality_comparable<
0031   T,
0032   typename std::enable_if<
0033     is_equality_comparable<T>::value
0034   >::type
0035 >:std::integral_constant<
0036   bool,
0037   noexcept(std::declval<T>()==std::declval<T>())
0038 >{};
0039 
0040 } /* namespace poly_collection::detail */
0041 
0042 } /* namespace poly_collection */
0043 
0044 } /* namespace boost */
0045 
0046 #endif