Files
boost_mpl/include/boost/mpl/aux_/lambda_spec.hpp
T

49 lines
1.2 KiB
C++
Raw Normal View History

2002-09-15 22:13:24 +00:00
#ifndef BOOST_MPL_AUX_LAMBDA_SPEC_HPP_INCLUDED
#define BOOST_MPL_AUX_LAMBDA_SPEC_HPP_INCLUDED
2004-09-02 15:41:37 +00:00
// Copyright Aleksey Gurtovoy 2001-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/mpl for documentation.
2002-09-15 22:13:24 +00:00
2004-09-02 15:41:37 +00:00
// $Source$
// $Date$
// $Revision$
#include <boost/mpl/void.hpp>
#include <boost/mpl/lambda_fwd.hpp>
#include <boost/mpl/int_fwd.hpp>
#include <boost/mpl/aux_/preprocessor/params.hpp>
#include <boost/mpl/aux_/lambda_arity_param.hpp>
#include <boost/mpl/aux_/config/lambda.hpp>
#if !defined(BOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT)
2002-09-15 22:13:24 +00:00
# define BOOST_MPL_AUX_PASS_THROUGH_LAMBDA_SPEC(i, name) \
template< \
BOOST_MPL_PP_PARAMS(i, typename T) \
2003-08-05 02:13:04 +00:00
, typename Tag \
2002-09-15 22:13:24 +00:00
> \
struct lambda< \
name< BOOST_MPL_PP_PARAMS(i, T) > \
2003-08-05 02:13:04 +00:00
, Tag \
2004-09-02 15:41:37 +00:00
BOOST_MPL_AUX_LAMBDA_ARITY_PARAM(int_<i>) \
2002-09-15 22:13:24 +00:00
> \
{ \
2004-09-02 15:41:37 +00:00
typedef false_ is_le; \
2002-09-15 22:13:24 +00:00
typedef name< BOOST_MPL_PP_PARAMS(i, T) > type; \
}; \
/**/
#else
# define BOOST_MPL_AUX_PASS_THROUGH_LAMBDA_SPEC(i, name) /**/
#endif
#endif // BOOST_MPL_AUX_LAMBDA_SPEC_HPP_INCLUDED