2
0
mirror of https://github.com/boostorg/hana.git synced 2026-02-27 17:12:13 +00:00
Files
hana/benchmark/functor/fmap/std_tuple.cpp
2014-07-07 12:05:38 -04:00

22 lines
372 B
C++

#include <boost/hana/adapted/std_tuple.hpp>
template <typename X>
struct result { };
constexpr struct {
template <typename X>
constexpr result<X> operator()(X) const;
} f{};
template <int>
struct x { };
int main() {
auto go = boost::hana::fmap(f,
std::make_tuple(
<%= 0.upto(x).map { |i| "x<#{i}>{}" }.join(', ') %>
)
);
}