2
0
mirror of https://github.com/boostorg/hana.git synced 2026-02-24 16:12:10 +00:00
Files
hana/benchmark/foldable/foldl/fusion_vector.cpp
2014-07-08 10:13:02 -04:00

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 %>{});
}