1 /* Copyright 2006-2009 Joaquin M Lopez Munoz.
2 * Distributed under the Boost Software License, Version 1.0.
3 * (See accompanying file LICENSE_1_0.txt or copy at
4 * http://www.boost.org/LICENSE_1_0.txt)
6 * See http://www.boost.org/libs/flyweight for library home page.
9 #ifndef BOOST_FLYWEIGHT_DETAIL_IS_PLACEHOLDER_EXPR_HPP
10 #define BOOST_FLYWEIGHT_DETAIL_IS_PLACEHOLDER_EXPR_HPP
16 #include <boost/type_traits/is_same.hpp>
17 #include <boost/mpl/apply.hpp>
18 #include <boost/mpl/aux_/lambda_support.hpp>
19 #include <boost/mpl/not.hpp>
20 #include <boost/preprocessor/facilities/intercept.hpp>
21 #include <boost/preprocessor/repetition/enum_params.hpp>
29 /* is_placeholder_expression<T> indicates whether T is an
30 * MPL placeholder expression.
34 struct is_placeholder_expression_helper
38 BOOST_MPL_LIMIT_METAFUNCTION_ARITY,typename BOOST_PP_INTERCEPT)
44 BOOST_MPL_AUX_LAMBDA_SUPPORT(1,is_placeholder_expression_helper,(T))
48 struct is_placeholder_expression:
51 is_placeholder_expression_helper<T>,
53 BOOST_MPL_LIMIT_METAFUNCTION_ARITY,int BOOST_PP_INTERCEPT)
59 } /* namespace flyweights::detail */
61 } /* namespace flyweights */
63 } /* namespace boost */