mirror of
https://github.com/boostorg/hana.git
synced 2026-01-24 05:52:14 +00:00
25 lines
530 B
C++
25 lines
530 B
C++
/*
|
|
@copyright Louis Dionne 2014
|
|
Distributed under the Boost Software License, Version 1.0.
|
|
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
|
|
*/
|
|
|
|
#include <boost/hana/fwd/iterable.hpp>
|
|
#include <boost/hana/integral_constant.hpp>
|
|
|
|
#include "benchmark.hpp"
|
|
|
|
<%= setup %>
|
|
|
|
template <int i> struct x { };
|
|
|
|
|
|
int main() {
|
|
auto iterable = <%= iterable %>;
|
|
auto n = boost::hana::int_< <%= input_size / 2 %> >;
|
|
|
|
boost::hana::benchmark::measure([=] {
|
|
boost::hana::at(n, iterable);
|
|
});
|
|
}
|