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
7#include <type_traits>
8
9namespace alpaka
10{
11 //! Provides a decaying wrapper around std::is_same. Example: is_decayed_v<volatile float, float> returns true.
12 template<typename T, typename U>
13 inline constexpr auto is_decayed_v = std::is_same_v<std::decay_t<T>, std::decay_t<U>>;
14} // namespace alpaka
main alpaka namespace.
Definition alpaka.hpp:76
constexpr auto is_decayed_v
Provides a decaying wrapper around std::is_same. Example: is_decayed_v<volatile float,...
Definition decay.hpp:13