rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
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
9namespace rexlib
10{
11
18template <typename Pivots, typename Types>
20
21template <>
23 : std::true_type
24{
25};
26
27template <
28 typename Pivot, typename... Pivots,
29 typename Type, typename... Types
30>
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
Container for multidimensional numeric data.
Definition array.hpp:31
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
Helper class to pass a heterogeneous sequence of types to a function.
Definition type_list.hpp:20
Check that each pivot type lies in the domain its pivot declares.
Definition type_rule_pivots_in_domain.hpp:19