alpaka
Abstraction Library for Parallel Kernel Acceleration
DimArithmetic.hpp
Go to the documentation of this file.
1 /* Copyright 2022 Benjamin Worpitz, Bernhard Manfred Gruber
2  * SPDX-License-Identifier: MPL-2.0
3  */
4 
5 #pragma once
6 
8 
9 #include <type_traits>
10 
11 namespace alpaka::trait
12 {
13  //! The arithmetic type dimension getter trait specialization.
14  template<typename T>
15  struct DimType<T, std::enable_if_t<std::is_arithmetic_v<T>>>
16  {
17  using type = DimInt<1u>;
18  };
19 } // namespace alpaka::trait
The accelerator traits.
std::integral_constant< std::size_t, N > DimInt
The dimension getter type trait.
Definition: Traits.hpp:14