summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/hana/benchmark/transform/compile.hana.types.erb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/hana/benchmark/transform/compile.hana.types.erb.cpp')
-rw-r--r--src/boost/libs/hana/benchmark/transform/compile.hana.types.erb.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/boost/libs/hana/benchmark/transform/compile.hana.types.erb.cpp b/src/boost/libs/hana/benchmark/transform/compile.hana.types.erb.cpp
new file mode 100644
index 000000000..0ad755699
--- /dev/null
+++ b/src/boost/libs/hana/benchmark/transform/compile.hana.types.erb.cpp
@@ -0,0 +1,26 @@
+/*
+@copyright Louis Dionne 2015
+Distributed under the Boost Software License, Version 1.0.
+(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
+ */
+
+#include <boost/hana/experimental/types.hpp>
+#include <boost/hana/transform.hpp>
+#include <boost/hana/type.hpp>
+namespace hana = boost::hana;
+
+
+template <typename>
+struct f { struct type; };
+
+template <int> struct x;
+
+
+int main() {
+ constexpr auto types = hana::experimental::types<
+ <%= (1..input_size).map { |i| "x<#{i}>" }.join(', ') %>
+ >{};
+
+ constexpr auto result = hana::transform(types, hana::metafunction<f>);
+ (void)result;
+}