]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/benchmark/transform/compile.fusion.list.erb.cpp
4ced955d582fca13312617f34a616ee23b43203d
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 <% if input_size
> 10 %>
6 #define FUSION_MAX_LIST_SIZE <%= ((input_size + 9) / 10) * 10 %>
9 #include <boost/fusion/include/as_list.hpp>
10 #include <boost/fusion/include/make_list.hpp>
11 #include <boost/fusion/include/transform.hpp>
12 namespace fusion
= boost::fusion
;
17 constexpr X
operator()(X x
) const { return x
; }
24 auto xs
= fusion::make_list(
25 <%= (1..input_size
).map
{ |n
| "x<#{n}>{}" }.join(', ') %>
28 auto result
= fusion::as_list(fusion::transform(xs
, f
{}));