diff options
Diffstat (limited to 'src/conditional')
-rw-r--r-- | src/conditional/cond.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/conditional/cond.h b/src/conditional/cond.h index c543449..5f8014f 100644 --- a/src/conditional/cond.h +++ b/src/conditional/cond.h @@ -19,6 +19,15 @@ using Cond = Cdr<Eval< detail::find_variadic<detail::cond_predicate, Branches...> >>; +template < + typename Condition, + typename Result +> +using Branch = Pair<Condition, Result>; + +template <typename Result> +using Else = Branch<Boolean<true>, Result>; + } #endif // TYPEASVALUE_SRC_CONDITIONAL_COND_H_ |