diff options
author | Adrian Kummerlaender | 2015-01-26 19:19:45 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2015-01-26 19:19:45 +0100 |
commit | 27b991ea23f71093b274b3ff1692c47274eb4d1d (patch) | |
tree | 10c4d4243087441484d57dddd3cefcd3888152f9 /src/function | |
parent | 7ce93ff513a993b8b46fbb401b232d6f557b948b (diff) | |
download | TypeAsValue-27b991ea23f71093b274b3ff1692c47274eb4d1d.tar TypeAsValue-27b991ea23f71093b274b3ff1692c47274eb4d1d.tar.gz TypeAsValue-27b991ea23f71093b274b3ff1692c47274eb4d1d.tar.bz2 TypeAsValue-27b991ea23f71093b274b3ff1692c47274eb4d1d.tar.lz TypeAsValue-27b991ea23f71093b274b3ff1692c47274eb4d1d.tar.xz TypeAsValue-27b991ea23f71093b274b3ff1692c47274eb4d1d.tar.zst TypeAsValue-27b991ea23f71093b274b3ff1692c47274eb4d1d.zip |
Redefined `Length` in terms of `Apply` and `Fold`
* this function illustrates the use case `Apply` is currently intended for
* moved `Take` and `Nth` into separate files to resolve header resolution conflicts
Diffstat (limited to 'src/function')
-rw-r--r-- | src/function/apply.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/function/apply.h b/src/function/apply.h index 6012a01..8e780e0 100644 --- a/src/function/apply.h +++ b/src/function/apply.h @@ -3,6 +3,9 @@ #include <type_traits> +#include "list/list.h" +#include "list/operation/nth.h" + namespace tav { namespace detail { @@ -45,8 +48,6 @@ template < typename... Arguments > struct Apply { - typedef typename tav::List<Arguments...>::type argument_list; - template <typename... Partials> using variadic_type = Function< typename detail::resolve_placeholder< |