]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/benchmark/find_if/compile.std.integer_sequence.erb.cpp
1 // Copyright Louis Dionne 2013-2017
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)
5 #include <boost/hana/bool.hpp>
6 #include <boost/hana/ext/std/integer_sequence.hpp>
7 #include <boost/hana/find_if.hpp>
8 #include <boost/hana/integral_constant.hpp>
11 namespace hana
= boost::hana
;
16 constexpr auto operator()(N
) const {
17 return hana::bool_c
<N::value
== <%= input_size
%>>;
22 auto sequence
= std::integer_sequence
<
23 <%= (["int"] + (1..input_size
).to_a
).join(', ') %>
25 auto result
= hana::find_if(sequence
, is_last
{});