alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
include
alpaka
concepts
hasName.hpp
Go to the documentation of this file.
1
/* Copyright 2024 René Widera
2
* SPDX-License-Identifier: MPL-2.0
3
*/
4
5
#pragma once
6
7
#include "
alpaka/internal/interface.hpp
"
8
9
#include <concepts>
10
#include <type_traits>
11
12
namespace
alpaka::concepts
13
{
14
/**
15
*/
16
template
<
typename
T>
17
concept
HasStaticName
=
requires
(T t) {
18
{
internal::GetStaticName::Op<std::decay_t<T>
>{}(t) } -> std::convertible_to<std::string>;
19
};
20
21
template
<
typename
T>
22
concept
HasName
=
requires
(T t) {
23
{
internal::GetName::Op<T>
{}(t) } -> std::convertible_to<std::string>;
24
};
25
}
// namespace alpaka::concepts
alpaka::concepts::HasName
Definition
hasName.hpp:22
alpaka::concepts::HasStaticName
Definition
hasName.hpp:17
interface.hpp
alpaka::concepts
Definition
api.hpp:32
alpaka::internal::GetName::Op
Definition
interface.hpp:42
alpaka::internal::GetStaticName::Op
Definition
interface.hpp:27
Generated on
for alpaka by
1.16.1