aboutsummaryrefslogtreecommitdiff
path: root/src/list/operation/append.h
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-01-22 18:16:45 +0100
committerAdrian Kummerlaender2015-01-22 18:16:45 +0100
commit2e58bae3b46dc292736bbdbba6d4ee56b1ee51ed (patch)
treeace35105a28d150996b14bea5a02518988d028e0 /src/list/operation/append.h
parentcb1ee55373e5efd1441664ec4e6942d4ace5e368 (diff)
downloadTypeAsValue-2e58bae3b46dc292736bbdbba6d4ee56b1ee51ed.tar
TypeAsValue-2e58bae3b46dc292736bbdbba6d4ee56b1ee51ed.tar.gz
TypeAsValue-2e58bae3b46dc292736bbdbba6d4ee56b1ee51ed.tar.bz2
TypeAsValue-2e58bae3b46dc292736bbdbba6d4ee56b1ee51ed.tar.lz
TypeAsValue-2e58bae3b46dc292736bbdbba6d4ee56b1ee51ed.tar.xz
TypeAsValue-2e58bae3b46dc292736bbdbba6d4ee56b1ee51ed.tar.zst
TypeAsValue-2e58bae3b46dc292736bbdbba6d4ee56b1ee51ed.zip
Renamed `Concatenate` to `Append` to match Scheme function naming
Diffstat (limited to 'src/list/operation/append.h')
-rw-r--r--src/list/operation/append.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/list/operation/append.h b/src/list/operation/append.h
new file mode 100644
index 0000000..9e1be79
--- /dev/null
+++ b/src/list/operation/append.h
@@ -0,0 +1,27 @@
+#ifndef TYPEASVALUE_SRC_LIST_OPERATION_APPEND_H_
+#define TYPEASVALUE_SRC_LIST_OPERATION_APPEND_H_
+
+namespace tav {
+
+template <
+ typename Primary,
+ typename Secondary
+>
+struct Append {
+ typedef Cons<
+ Head<Primary>,
+ typename Append<
+ Tail<Primary>,
+ Secondary
+ >::type
+ > type;
+};
+
+template <typename Secondary>
+struct Append<void, Secondary> {
+ typedef Secondary type;
+};
+
+}
+
+#endif // TYPEASVALUE_SRC_LIST_OPERATION_APPEND_H_