mirror of
https://github.com/boostorg/hana.git
synced 2026-02-26 04:42:17 +00:00
22 lines
400 B
C++
22 lines
400 B
C++
<% render(instance) %>
|
|
<%= includes(x) %>
|
|
|
|
#include <boost/hana/functor/functor.hpp>
|
|
|
|
|
|
template <typename X>
|
|
struct result { };
|
|
|
|
struct f {
|
|
template <typename X>
|
|
constexpr result<X> operator()(X) const { return {}; }
|
|
};
|
|
|
|
template <int> struct x { };
|
|
|
|
int main() {
|
|
auto go = boost::hana::fmap(f{},
|
|
<%= list((0..x).map { |i| "x<#{i}>" }, (0..x).map { |i| "x<#{i}>{}" }) %>
|
|
);
|
|
}
|