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/operation/concatenate.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/list/operation/concatenate.h (limited to 'src/list/operation/concatenate.h') diff --git a/src/list/operation/concatenate.h b/src/list/operation/concatenate.h new file mode 100644 index 0000000..21eb1ee --- /dev/null +++ b/src/list/operation/concatenate.h @@ -0,0 +1,27 @@ +#ifndef TYPEASVALUE_SRC_LIST_OPERATION_CONCATENATE_H_ +#define TYPEASVALUE_SRC_LIST_OPERATION_CONCATENATE_H_ + +namespace tav { + +template < + typename Primary, + typename Secondary +> +struct Concatenate { + typedef Cons< + Head, + typename Concatenate< + Tail, + Secondary + >::type + > type; +}; + +template +struct Concatenate { + typedef Secondary type; +}; + +} + +#endif // TYPEASVALUE_SRC_LIST_OPERATION_CONCATENATE_H_ -- cgit v1.2.3