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

22 lines
361 B
C++

#include <boost/hana/list.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,
boost::hana::list(
<%= 0.upto(x).map { |i| "x<#{i}>{}" }.join(', ') %>
)
);
}