]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/benchmark/find_if/compile.mpl.vector.erb.cpp
b6b42a702993035c7be2156ede7b9732ac97fc4b
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/mpl/find_if.hpp>
6 #include <boost/mpl/integral_c.hpp>
7 #include <boost/mpl/push_back.hpp>
8 #include <boost/mpl/quote.hpp>
9 #include <boost/mpl/vector.hpp>
10 namespace mpl
= boost::mpl
;
16 : mpl::integral_c
<bool, N::type::value
== <%= input_size
%>>
20 using vector
= <%= mpl_vector((1..input_size
).to_a
.map
{ |n
|
21 "mpl::integral_c<int, #{n}>"
24 using result
= mpl::find_if
<vector
, is_last
>::type
;