Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:24

0001 #ifndef BOOST_HASH_IS_TUPLE_LIKE_HPP_INCLUDED
0002 #define BOOST_HASH_IS_TUPLE_LIKE_HPP_INCLUDED
0003 
0004 // Copyright 2017, 2022 Peter Dimov.
0005 // Distributed under the Boost Software License, Version 1.0.
0006 // https://www.boost.org/LICENSE_1_0.txt
0007 
0008 #include <type_traits>
0009 #include <utility>
0010 
0011 namespace boost
0012 {
0013 namespace hash_detail
0014 {
0015 
0016 template<class T, class E = std::true_type> struct is_tuple_like_: std::false_type
0017 {
0018 };
0019 
0020 template<class T> struct is_tuple_like_<T, std::integral_constant<bool, std::tuple_size<T>::value == std::tuple_size<T>::value> >: std::true_type
0021 {
0022 };
0023 
0024 } // namespace hash_detail
0025 
0026 namespace container_hash
0027 {
0028 
0029 template<class T> struct is_tuple_like: hash_detail::is_tuple_like_<T>
0030 {
0031 };
0032 
0033 } // namespace container_hash
0034 } // namespace boost
0035 
0036 #endif // #ifndef BOOST_HASH_IS_TUPLE_LIKE_HPP_INCLUDED