alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
Decay.hpp
Go to the documentation of this file.
1/* Copyright 2023 Sergei Bastrakov, Jan Stephan, Bernhard Manfred Gruber
2 * SPDX-License-Identifier: MPL-2.0
3 */
4
5#pragma once
6
8
9#include <type_traits>
10
11namespace alpaka
12{
13 //! Provides a decaying wrapper around std::is_same. Example: is_decayed_v<volatile float, float> returns true.
14 template<typename T, typename U>
15 inline constexpr auto is_decayed_v = std::is_same_v<std::decay_t<T>, std::decay_t<U>>;
16} // namespace alpaka
The alpaka accelerator library.
constexpr auto is_decayed_v
Provides a decaying wrapper around std::is_same. Example: is_decayed_v<volatile float,...
Definition Decay.hpp:15