diff options
author | Adrian Kummerlaender | 2015-02-16 14:03:53 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2015-02-16 14:03:53 +0100 |
commit | 324988569183e38e9c5e42318571693a6fcd9569 (patch) | |
tree | ca47de290dc9b6ee1d1f771fb473c1f604e67189 /src/function/detail | |
parent | a59df7e8c4fd1f88bc1078ebcfde944502b0c309 (diff) | |
download | TypeAsValue-324988569183e38e9c5e42318571693a6fcd9569.tar TypeAsValue-324988569183e38e9c5e42318571693a6fcd9569.tar.gz TypeAsValue-324988569183e38e9c5e42318571693a6fcd9569.tar.bz2 TypeAsValue-324988569183e38e9c5e42318571693a6fcd9569.tar.lz TypeAsValue-324988569183e38e9c5e42318571693a6fcd9569.tar.xz TypeAsValue-324988569183e38e9c5e42318571693a6fcd9569.tar.zst TypeAsValue-324988569183e38e9c5e42318571693a6fcd9569.zip |
Simplified `List`, `Length` and `Reverse` implementations
* continuation of 8e49cc6
* list constructor was generalized to a _variadic fold_
Diffstat (limited to 'src/function/detail')
-rw-r--r-- | src/function/detail/apply.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/function/detail/apply.h b/src/function/detail/apply.h index 8d4ef6d..3df80ef 100644 --- a/src/function/detail/apply.h +++ b/src/function/detail/apply.h @@ -37,10 +37,7 @@ struct resolve_placeholder<Partials, placeholder<Index>> { }; template <typename... Arguments> -using count_placeholders = Count< - is_placeholder, - tav::List<Arguments...> ->; +using count_placeholders = Count<is_placeholder, List<Arguments...>>; template < template<typename...> class Function, @@ -58,7 +55,7 @@ struct apply_variadic { template <typename... Partials> using function = Function< Eval<resolve_placeholder< - tav::List<Partials...>, + List<Partials...>, Arguments >>... >; |