File indexing completed on 2025-01-31 09:56:56
0001
0002
0003
0004
0005
0006
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 }
0041
0042 }
0043
0044 }
0045
0046 #endif