mirror of
https://github.com/boostorg/hana.git
synced 2026-02-24 16:12:10 +00:00
22 lines
465 B
C++
22 lines
465 B
C++
<% vector = Benchcc::Fusion::Vector.new((0..x).map { |i| "x<#{i}>" }) %>
|
|
<%= vector.includes %>
|
|
|
|
#include <boost/hana/ext/boost/fusion.hpp>
|
|
|
|
|
|
template <typename ...>
|
|
struct result { };
|
|
|
|
constexpr struct {
|
|
template <typename State, typename X>
|
|
constexpr result<State, X> operator()(State, X) const { return {}; }
|
|
} f{};
|
|
|
|
constexpr struct { } state{};
|
|
|
|
template <int> struct x { };
|
|
|
|
int main() {
|
|
auto go = boost::hana::foldl(f, state, <%= vector %>{});
|
|
}
|