2
0
mirror of https://github.com/boostorg/hana.git synced 2026-02-23 15:52:11 +00:00
Files
hana/benchmark/list/foldable/minimum.cpp
2014-07-09 17:55:56 -04:00

16 lines
401 B
C++

<% render(instance) %>
<%= includes(0..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) %>
);
}