]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/benchmark/reverse/move.hana.tuple.erb.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / hana / benchmark / reverse / move.hana.tuple.erb.cpp
1 // Copyright Louis Dionne 2013-2016
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(std::move(values));
24 (void)result;
25 }
26 });
27 }