alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
Traits.hpp
Go to the documentation of this file.
1/* Copyright 2020 Benjamin Worpitz, Bernhard Manfred Gruber
2 * SPDX-License-Identifier: MPL-2.0
3 */
4
5#pragma once
6
7namespace alpaka
8{
9 //! The dimension trait.
10 namespace trait
11 {
12 //! The dimension getter type trait.
13 template<typename T, typename TSfinae = void>
14 struct DimType;
15 } // namespace trait
16
17 //! The dimension type trait alias template to remove the ::type.
18 template<typename T>
19 using Dim = typename trait::DimType<T>::type;
20} // namespace alpaka
The alpaka accelerator library.
typename trait::DimType< T >::type Dim
The dimension type trait alias template to remove the ::type.
Definition Traits.hpp:19
The dimension getter type trait.
Definition Traits.hpp:14