kokkos-execution 0.0.1
Loading...
Searching...
No Matches
type_info.hpp
Go to the documentation of this file.
1#ifndef KOKKOS_EXECUTION_IMPL_TYPE_INFO_HPP
2#define KOKKOS_EXECUTION_IMPL_TYPE_INFO_HPP
3
10
11#if !defined(__cpp_impl_reflection)
12# include "Kokkos_TypeInfo.hpp"
13#else
14# include <meta>
15#endif
16
18
19template <typename T>
20constexpr auto display_string_of() noexcept -> std::string_view {
21#if !defined(__cpp_impl_reflection)
22 return Kokkos::Impl::TypeInfo<T>::name();
23#else
24 return std::meta::display_string_of(^^T);
25#endif
26}
27
28} // namespace Kokkos::Execution::Impl
29
30#endif // KOKKOS_EXECUTION_IMPL_TYPE_INFO_HPP
constexpr auto display_string_of() noexcept -> std::string_view
Definition type_info.hpp:20