From 123ce87e66013bc11bf0d9ca01776a60cf47c89b Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 17 Jan 2015 20:07:24 +0100 Subject: Extracted list operations into separate _operation_ headers --- src/list/list.h | 32 +++----------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) (limited to 'src/list/list.h') diff --git a/src/list/list.h b/src/list/list.h index f21d0fc..b0fe407 100644 --- a/src/list/list.h +++ b/src/list/list.h @@ -27,35 +27,9 @@ using Head = Car; template using Tail = Cdr; -template -struct Length { - typedef Add, typename Length>::type> type; -}; - -template <> -struct Length { - typedef Size<0> type; -}; - -template < - typename Primary, - typename Secondary -> -struct Concatenate { - typedef Cons< - Head, - typename Concatenate< - Tail, - Secondary - >::type - > type; -}; - -template -struct Concatenate { - typedef Secondary type; -}; - } +#include "operation/basic.h" +#include "operation/concatenate.h" + #endif // TYPEASVALUE_SRC_LIST_LIST_H_ -- cgit v1.2.3