2
0
mirror of https://github.com/boostorg/hana.git synced 2026-01-24 05:52:14 +00:00
Files
hana/benchmark/iterable/drop.cpp
2015-02-01 21:02:18 -05:00

25 lines
532 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::drop(n, iterable);
});
}