Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 1 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 2 | #if !defined(NDNBOOST_PP_IS_ITERATING) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 3 | |
| 4 | ///// header body |
| 5 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 6 | #ifndef NDNBOOST_MPL_PLACEHOLDERS_HPP_INCLUDED |
| 7 | #define NDNBOOST_MPL_PLACEHOLDERS_HPP_INCLUDED |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 8 | |
| 9 | // Copyright Aleksey Gurtovoy 2001-2004 |
| 10 | // Copyright Peter Dimov 2001-2003 |
| 11 | // |
| 12 | // Distributed under the Boost Software License, Version 1.0. |
| 13 | // (See accompanying file LICENSE_1_0.txt or copy at |
| 14 | // http://www.boost.org/LICENSE_1_0.txt) |
| 15 | // |
| 16 | // See http://www.boost.org/libs/mpl for documentation. |
| 17 | |
| 18 | // $Id: placeholders.hpp 49267 2008-10-11 06:19:02Z agurtovoy $ |
| 19 | // $Date: 2008-10-10 23:19:02 -0700 (Fri, 10 Oct 2008) $ |
| 20 | // $Revision: 49267 $ |
| 21 | |
| 22 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 23 | #if !defined(NDNBOOST_MPL_PREPROCESSING_MODE) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 24 | # include <ndnboost/mpl/arg.hpp> |
| 25 | # include <ndnboost/mpl/aux_/adl_barrier.hpp> |
| 26 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 27 | # if !defined(NDNBOOST_MPL_CFG_NO_ADL_BARRIER_NAMESPACE) |
| 28 | # define NDNBOOST_MPL_AUX_ARG_ADL_BARRIER_DECL(type) \ |
| 29 | using ::NDNBOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::type; \ |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 30 | /**/ |
| 31 | # else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 32 | # define NDNBOOST_MPL_AUX_ARG_ADL_BARRIER_DECL(type) /**/ |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 33 | # endif |
| 34 | |
| 35 | #endif |
| 36 | |
| 37 | #include <ndnboost/mpl/aux_/config/use_preprocessed.hpp> |
| 38 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 39 | #if !defined(NDNBOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \ |
| 40 | && !defined(NDNBOOST_MPL_PREPROCESSING_MODE) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 41 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 42 | # define NDNBOOST_MPL_PREPROCESSED_HEADER placeholders.hpp |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 43 | # include <ndnboost/mpl/aux_/include_preprocessed.hpp> |
| 44 | |
| 45 | #else |
| 46 | |
| 47 | # include <ndnboost/mpl/aux_/nttp_decl.hpp> |
| 48 | # include <ndnboost/mpl/limits/arity.hpp> |
| 49 | # include <ndnboost/preprocessor/iterate.hpp> |
| 50 | # include <ndnboost/preprocessor/cat.hpp> |
| 51 | |
| 52 | // watch out for GNU gettext users, who #define _(x) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 53 | #if !defined(_) || defined(NDNBOOST_MPL_CFG_NO_UNNAMED_PLACEHOLDER_SUPPORT) |
| 54 | NDNBOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 55 | typedef arg<-1> _; |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 56 | NDNBOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 57 | |
| 58 | namespace ndnboost { namespace mpl { |
| 59 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 60 | NDNBOOST_MPL_AUX_ARG_ADL_BARRIER_DECL(_) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 61 | |
| 62 | namespace placeholders { |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 63 | using NDNBOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::_; |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 64 | } |
| 65 | |
| 66 | }} |
| 67 | #endif |
| 68 | |
| 69 | /// agurt, 17/mar/02: one more placeholder for the last 'apply#' |
| 70 | /// specialization |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 71 | #define NDNBOOST_PP_ITERATION_PARAMS_1 \ |
| 72 | (3,(1, NDNBOOST_MPL_LIMIT_METAFUNCTION_ARITY + 1, <ndnboost/mpl/placeholders.hpp>)) |
| 73 | #include NDNBOOST_PP_ITERATE() |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 74 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 75 | #endif // NDNBOOST_MPL_CFG_NO_PREPROCESSED_HEADERS |
| 76 | #endif // NDNBOOST_MPL_PLACEHOLDERS_HPP_INCLUDED |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 77 | |
| 78 | ///// iteration |
| 79 | |
| 80 | #else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 81 | #define i_ NDNBOOST_PP_FRAME_ITERATION(1) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 82 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 83 | NDNBOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 84 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 85 | typedef arg<i_> NDNBOOST_PP_CAT(_,i_); |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 86 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 87 | NDNBOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 88 | |
| 89 | namespace ndnboost { namespace mpl { |
| 90 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 91 | NDNBOOST_MPL_AUX_ARG_ADL_BARRIER_DECL(NDNBOOST_PP_CAT(_,i_)) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 92 | |
| 93 | namespace placeholders { |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 94 | using NDNBOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::NDNBOOST_PP_CAT(_,i_); |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 95 | } |
| 96 | |
| 97 | }} |
| 98 | |
| 99 | #undef i_ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 100 | #endif // NDNBOOST_PP_IS_ITERATING |