File indexing completed on 2025-01-18 09:30:48
0001
0002
0003
0004
0005
0006
0007 #ifndef BOOST_FIBERS_DETAIL_IS_ALL_SAME_H
0008 #define BOOST_FIBERS_DETAIL_IS_ALL_SAME_H
0009
0010 #include <type_traits>
0011
0012 #include <boost/config.hpp>
0013
0014 #include <boost/fiber/detail/config.hpp>
0015
0016 #ifdef BOOST_HAS_ABI_HEADERS
0017 # include BOOST_ABI_PREFIX
0018 #endif
0019
0020 namespace boost {
0021 namespace fibers {
0022 namespace detail {
0023
0024 template< typename X, typename ... Y >
0025 struct is_all_same;
0026
0027 template< typename X, typename Y0, typename ... Y >
0028 struct is_all_same< X, Y0, Y ... > {
0029 static constexpr bool value =
0030 std::is_same< X, Y0 >::value && is_all_same< X, Y ... >::value;
0031 };
0032
0033 template< typename X, typename Y0 >
0034 struct is_all_same< X, Y0 > {
0035 static constexpr bool value = std::is_same< X, Y0 >::value;
0036 };
0037
0038 }}}
0039
0040 #ifdef BOOST_HAS_ABI_HEADERS
0041 # include BOOST_ABI_SUFFIX
0042 #endif
0043
0044 #endif