summaryrefslogtreecommitdiff
path: root/deps/tao_tuple/28626e99/include/tao/seq/concatenate.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'deps/tao_tuple/28626e99/include/tao/seq/concatenate.hpp')
-rw-r--r--deps/tao_tuple/28626e99/include/tao/seq/concatenate.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/deps/tao_tuple/28626e99/include/tao/seq/concatenate.hpp b/deps/tao_tuple/28626e99/include/tao/seq/concatenate.hpp
new file mode 100644
index 0000000000..fd74924e1e
--- /dev/null
+++ b/deps/tao_tuple/28626e99/include/tao/seq/concatenate.hpp
@@ -0,0 +1,29 @@
+// The Art of C++ / Sequences
+// Copyright (c) 2015 Daniel Frey
+
+#ifndef TAOCPP_SEQUENCES_INCLUDE_CONCATENATE_HPP
+#define TAOCPP_SEQUENCES_INCLUDE_CONCATENATE_HPP
+
+#include <type_traits>
+
+#include "integer_sequence.hpp"
+
+namespace tao
+{
+ namespace seq
+ {
+ template< typename, typename >
+ struct concatenate;
+
+ template< typename TA, TA... As, typename TB, TB... Bs >
+ struct concatenate< integer_sequence< TA, As... >, integer_sequence< TB, Bs... > >
+ {
+ using type = integer_sequence< typename std::common_type< TA, TB >::type, As..., Bs... >;
+ };
+
+ template< typename A, typename B >
+ using concatenate_t = typename concatenate< A, B >::type;
+ }
+}
+
+#endif // TAOCPP_SEQUENCES_INCLUDE_CONCATENATE_HPP