]>
Commit | Line | Data |
---|---|---|
b32b8144 | 1 | // Copyright Louis Dionne 2013-2017 |
7c673cae FG |
2 | // Distributed under the Boost Software License, Version 1.0. |
3 | // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) | |
4 | ||
5 | #include <boost/hana/reverse.hpp> | |
6 | #include <boost/hana/tuple.hpp> | |
7 | ||
8 | #include "measure.hpp" | |
9 | #include <cstdlib> | |
10 | #include <string> | |
11 | #include <utility> | |
12 | namespace hana = boost::hana; | |
13 | ||
14 | ||
15 | int main () { | |
16 | std::string s(1000, 'x'); | |
17 | hana::benchmark::measure([&] { | |
18 | for (int iteration = 0; iteration < 1 << 5; ++iteration) { | |
19 | auto values = hana::make_tuple( | |
20 | <%= input_size.times.map { 's' }.join(', ') %> | |
21 | ); | |
22 | ||
23 | auto result = hana::reverse(values); | |
24 | (void)result; | |
25 | } | |
26 | }); | |
27 | } |