alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
cast.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  alpaka
 main alpaka namespace.

Functions

template<typename T_To>
requires (isLosslesslyConvertible_v<typename ALPAKA_TYPEOF(input)::type, T_To>)
constexpr decltype(auto) alpaka::lpCast (auto &&input)
 Performs a static_cast on the storage type of combined data type.
template<typename T_To>
requires (isConvertible_v<typename ALPAKA_TYPEOF(input)::type, T_To>)
constexpr decltype(auto) alpaka::pCast (auto &&input)
 Performs a static_cast on the storage type of combined data type.