diff options
author | Adrian Kummerlaender | 2015-01-17 20:07:24 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2015-01-17 20:07:24 +0100 |
commit | 123ce87e66013bc11bf0d9ca01776a60cf47c89b (patch) | |
tree | c2a83c1d5ea413e57cd8488b9dfafcdea3e0a866 /src/list/list.h | |
parent | 385c51950644121d7b6e04718374b1af63209ac7 (diff) | |
download | TypeAsValue-123ce87e66013bc11bf0d9ca01776a60cf47c89b.tar TypeAsValue-123ce87e66013bc11bf0d9ca01776a60cf47c89b.tar.gz TypeAsValue-123ce87e66013bc11bf0d9ca01776a60cf47c89b.tar.bz2 TypeAsValue-123ce87e66013bc11bf0d9ca01776a60cf47c89b.tar.lz TypeAsValue-123ce87e66013bc11bf0d9ca01776a60cf47c89b.tar.xz TypeAsValue-123ce87e66013bc11bf0d9ca01776a60cf47c89b.tar.zst TypeAsValue-123ce87e66013bc11bf0d9ca01776a60cf47c89b.zip |
Extracted list operations into separate _operation_ headers
Diffstat (limited to 'src/list/list.h')
-rw-r--r-- | src/list/list.h | 32 |
1 files changed, 3 insertions, 29 deletions
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<Cons>; template <typename Cons> using Tail = Cdr<Cons>; -template <typename Cons> -struct Length { - typedef Add<Size<1>, typename Length<Cdr<Cons>>::type> type; -}; - -template <> -struct Length<void> { - typedef Size<0> type; -}; - -template < - typename Primary, - typename Secondary -> -struct Concatenate { - typedef Cons< - Head<Primary>, - typename Concatenate< - Tail<Primary>, - Secondary - >::type - > type; -}; - -template <typename Secondary> -struct Concatenate<void, Secondary> { - typedef Secondary type; -}; - } +#include "operation/basic.h" +#include "operation/concatenate.h" + #endif // TYPEASVALUE_SRC_LIST_LIST_H_ |