32template <
class T, std::size_t...
I>
33auto mask_impl(std::unsigned_integral
auto mask, T
const &t,
34 std::index_sequence<I...>) {
56template <
class T> T
mask(std::unsigned_integral
auto mask, T
const &t) {
59 return detail::mask_impl(
mask, t,
60 std::make_index_sequence<std::tuple_size_v<T>>{});
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
T mask(std::unsigned_integral auto mask, T const &t)
Pick elements of a tuple-like by a bit mask.