aboutsummaryrefslogtreecommitdiff
path: root/src/function
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-02-16 14:03:53 +0100
committerAdrian Kummerlaender2015-02-16 14:03:53 +0100
commit324988569183e38e9c5e42318571693a6fcd9569 (patch)
treeca47de290dc9b6ee1d1f771fb473c1f604e67189 /src/function
parenta59df7e8c4fd1f88bc1078ebcfde944502b0c309 (diff)
downloadTypeAsValue-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')
-rw-r--r--src/function/detail/apply.h7
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
>>...
>;