yfast 0.6.1
Loading...
Searching...
No Matches
maybe_const.h
1#ifndef _YFAST_UTILS_MAYBE_CONST_H
2#define _YFAST_UTILS_MAYBE_CONST_H
3
4namespace yfast::utils {
5
6template <typename T, bool Const>
7struct MaybeConst;
8
9template <typename T>
10struct MaybeConst<T, true> {
11 typedef const T Type;
12};
13
14template <typename T>
15struct MaybeConst<T, false> {
16 typedef T Type;
17};
18
19}
20
21#endif
Definition maybe_const.h:7