File indexing completed on 2024-04-06 12:15:40
0001 #ifndef HeterogeneousCore_AlpakaInterface_interface_traits_h
0002 #define HeterogeneousCore_AlpakaInterface_interface_traits_h
0003
0004 #include <type_traits>
0005
0006 #if __cplusplus >= 202002L
0007 namespace cms {
0008 using std::is_bounded_array;
0009 using std::is_unbounded_array;
0010 }
0011 #else
0012 #include <boost/type_traits/is_bounded_array.hpp>
0013 #include <boost/type_traits/is_unbounded_array.hpp>
0014 namespace cms {
0015 using boost::is_bounded_array;
0016 using boost::is_unbounded_array;
0017 }
0018 #endif
0019
0020 namespace cms {
0021 template <typename T>
0022 inline constexpr bool is_bounded_array_v = is_bounded_array<T>::value;
0023
0024 template <typename T>
0025 inline constexpr bool is_unbounded_array_v = is_unbounded_array<T>::value;
0026 }
0027
0028 #endif