]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fusion/include/boost/fusion/functional/generation/detail/gen_make_adapter.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / fusion / include / boost / fusion / functional / generation / detail / gen_make_adapter.hpp
1 /*=============================================================================
2 Copyright (c) 2007 Tobias Schwinger
3
4 Use modification and distribution are subject to the Boost Software
5 License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 http://www.boost.org/LICENSE_1_0.txt).
7 ==============================================================================*/
8
9 // No include guard - this file is included multiple times intentionally.
10
11 #include <boost/preprocessor/cat.hpp>
12 #include <boost/fusion/support/detail/as_fusion_element.hpp>
13
14 #if !defined(BOOST_FUSION_CLASS_TPL_NAME)
15 # error "BOOST_FUSION_CLASS_TPL_NAME undefined"
16 #endif
17
18 #define BOOST_FUSION_FUNC_NAME BOOST_PP_CAT(make_,BOOST_FUSION_CLASS_TPL_NAME)
19
20 namespace boost { namespace fusion
21 {
22
23 namespace result_of
24 {
25 template <typename F>
26 struct BOOST_FUSION_FUNC_NAME
27 {
28 typedef fusion::BOOST_FUSION_CLASS_TPL_NAME<
29 typename fusion::detail::as_fusion_element<F>::type > type;
30 };
31 }
32
33 template <typename F>
34 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
35 inline typename result_of::BOOST_FUSION_FUNC_NAME<F>::type
36 BOOST_FUSION_FUNC_NAME(F const & f)
37 {
38 return typename result_of::BOOST_FUSION_FUNC_NAME<F>::type(f);
39 }
40
41 }}
42
43 #undef BOOST_FUSION_CLASS_TPL_NAME
44 #undef BOOST_FUSION_FUNC_NAME
45