Loading...
Searching...
No Matches
TypeExtraction.h
Go to the documentation of this file.
1//
2// Created by Dave Smith on 3/10/26.
3//
4
5#ifndef TYPEEXTRACTION_H
6#define TYPEEXTRACTION_H
7
12
13namespace ml
14{
16
22 template<typename T, typename = void>
23 struct extract_Flags { using type = void; };
24
25 template<typename T>
26 struct extract_Flags<T, std::void_t<typename T::Flags>>
27 {
28 using type = typename T::Flags;
29 };
30
37 template<typename T, typename = void>
38 struct extract_State { using type = void; };
39
40 template<typename T>
41 struct extract_State<T, std::void_t<typename T::State>>
42 {
43 using type = typename T::State;
44 };
45
47
48} // namespace ml
49
50#endif // TYPEEXTRACTION_H
Definition Component.h:18