2
0
mirror of https://github.com/boostorg/hana.git synced 2026-02-23 03:42:09 +00:00
Files
hana/benchmark/list/scanr1.cpp
2014-07-20 14:25:10 -04:00

25 lines
478 B
C++

<% render(instance) %>
<%= includes((1..x+1).size) %>
#include <boost/hana/list/list.hpp>
template <typename ...>
struct result { };
struct f {
template <typename X, typename State>
constexpr result<X, State> operator()(X, State) const { return {}; }
};
template <int> struct x { };
int main() {
auto go = boost::hana::scanr1(f{},
<%= list(
(1..x+1).map { |i| "x<#{i}>" },
(1..x+1).map { |i| "x<#{i}>{}" }
) %>
);
}