aboutsummaryrefslogtreecommitdiff
path: root/src/list/operation/concatenate.h
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-01-17 20:07:24 +0100
committerAdrian Kummerlaender2015-01-17 20:07:24 +0100
commit123ce87e66013bc11bf0d9ca01776a60cf47c89b (patch)
treec2a83c1d5ea413e57cd8488b9dfafcdea3e0a866 /src/list/operation/concatenate.h
parent385c51950644121d7b6e04718374b1af63209ac7 (diff)
downloadTypeAsValue-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/operation/concatenate.h')
-rw-r--r--src/list/operation/concatenate.h27
1 files changed, 27 insertions, 0 deletions
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<Primary>,
+ typename Concatenate<
+ Tail<Primary>,
+ Secondary
+ >::type
+ > type;
+};
+
+template <typename Secondary>
+struct Concatenate<void, Secondary> {
+ typedef Secondary type;
+};
+
+}
+
+#endif // TYPEASVALUE_SRC_LIST_OPERATION_CONCATENATE_H_