2
0
mirror of https://github.com/boostorg/hana.git synced 2026-02-24 04:02:12 +00:00
Files
hana/benchmark/list/foldable/minimum.cpp
2014-07-12 10:43:11 -04:00

16 lines
398 B
C++

<% render(instance) %>
<%= includes(x) %>
#include <boost/hana/foldable.hpp>
#include <boost/hana/integral.hpp>
// We must make sure we always have the same seed to have reproducible results.
<% xs = (0..x).map { |i| "boost::hana::int_<#{i}>" }.shuffle(random: Random.new(0)) %>
int main() {
auto go = boost::hana::minimum(
<%= list(xs.map { |x| "decltype(#{x})" }, xs) %>
);
}