cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
unit.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_BASIC_UNIT_H
4#define pRC_CORE_BASIC_UNIT_H
5
7
8namespace pRC
9{
10 template<class T = Void>
11 struct Unit;
12
13 template<class T>
14 struct Unit<T const> : Unit<T>
15 {
16 };
17
18 template<IsVoid T>
19 requires IsDefined<Identity<T>>
20 struct Unit<T> : Identity<T>
21 {
22 };
23
24 template<IsBool T>
25 requires IsDefined<Identity<T>>
26 struct Unit<T> : Identity<T>
27 {
28 };
29
30 template<IsIntegral T>
31 requires IsDefined<Identity<T>>
32 struct Unit<T> : Identity<T>
33 {
34 };
35}
36#endif // pRC_CORE_BASIC_UNIT_H
Definition value.hpp:12
Definition concepts.hpp:16
Definition cholesky.hpp:10
Definition identity.hpp:11
Definition unit.hpp:11