24 #ifndef RAJA_util_TypeConvert_HPP
25 #define RAJA_util_TypeConvert_HPP
27 #include "RAJA/config.hpp"
42 template<
typename A,
typename B>
45 static_assert(
sizeof(A) ==
sizeof(B),
"A and B must be the same size");
48 memcpy(&b, &a,
sizeof(A));
Header file for common RAJA internal macro definitions.
#define RAJA_HOST_DEVICE
Definition: macros.hpp:65
RAJA_INLINE constexpr RAJA_HOST_DEVICE B reinterp_A_as_B(A const &a)
Definition: TypeConvert.hpp:43
Definition: AlignedRangeIndexSetBuilders.cpp:35