rexlib
0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
rexlib
core
operation
type_rule
type_rule_pivots_in_domain.hpp
1
// SPDX-License-Identifier: GPL-3.0-only
2
3
#pragma once
4
5
#include <rexlib/core/meta/type_list.hpp>
6
7
#include <type_traits>
8
9
namespace
rexlib
10
{
11
18
template
<
typename
Pivots,
typename
Types>
19
struct
type_rule_pivots_in_domain
;
20
21
template
<>
22
struct
type_rule_pivots_in_domain
<
type_list
<>,
type_list
<>>
23
: std::true_type
24
{
25
};
26
27
template
<
28
typename
Pivot
,
typename
...
Pivots
,
29
typename
Type
,
typename
...
Types
30
>
31
struct
type_rule_pivots_in_domain
<
32
type_list
<
Pivot
,
Pivots
...>,
33
type_list
<
Type
,
Types
...>
34
>
35
: std::integral_constant<
36
bool,
37
Pivot::domain_type::template contains_type<Type>::value &&
38
type_rule_pivots_in_domain<
39
type_list<Pivots...>,
40
type_list<Types...>
41
>::value
42
>
43
{
44
};
45
46
}
// namespace rexlib
rexlib::array
Container for multidimensional numeric data.
Definition
array.hpp:31
rexlib
Arrays, the operations on them and the devices that run those operations.
Definition
cpu_device.hpp:10
rexlib::type_list
Helper class to pass a heterogeneous sequence of types to a function.
Definition
type_list.hpp:20
rexlib::type_rule_pivots_in_domain
Check that each pivot type lies in the domain its pivot declares.
Definition
type_rule_pivots_in_domain.hpp:19
Generated by
1.9.8