/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
HeterogeneousCore/AlpakaInterface/interface/traits.h
28 строк
794 B
Andrea Bocci
Update code for Alpaka devel as of 2023.02.1
03 фев 2023, 18:51
Не верифицирован
03 фев 2023, 18:51
a14e8fc
Код
Авторство
О чём код?
#ifndef HeterogeneousCore_AlpakaInterface_interface_traits_h #define HeterogeneousCore_AlpakaInterface_interface_traits_h #include <type_traits> #if __cplusplus >= 202002L namespace cms { using std::is_bounded_array; using std::is_unbounded_array; } // namespace cms #else #include <boost/type_traits/is_bounded_array.hpp> #include <boost/type_traits/is_unbounded_array.hpp> namespace cms { using boost::is_bounded_array; using boost::is_unbounded_array; } // namespace cms #endif namespace cms { template <typename T> inline constexpr bool is_bounded_array_v = is_bounded_array<T>::value; template <typename T> inline constexpr bool is_unbounded_array_v = is_unbounded_array<T>::value; } // namespace cms #endif // HeterogeneousCore_AlpakaInterface_interface_traits_h