// -- core.hpp -- Boost Lambda Library ------------------------------------- // // Copyright (C) 2000 Gary Powell (powellg@amazon.com) // Copyright (C) 1999, 2000 Jaakko Jarvi (jaakko.jarvi@cs.utu.fi) // // 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) // // For more information, see www.boost.org // // Includes the core of LL, without any real features for client: // // tuples, lambda functors, return type deduction templates, // argument substitution mechanism (select functions) // // Some functionality comes as well: // Assignment and subscript operators, as well as function // call operator for placeholder variables. // ------------------------------------------------------------------------- #ifndef ACTIV_BOOST_LAMBDA_CORE_HPP #define ACTIV_BOOST_LAMBDA_CORE_HPP #include "ActivBoost/config.hpp" #include "ActivBoost/type_traits/transform_traits.hpp" #include "ActivBoost/type_traits/cv_traits.hpp" #include "ActivBoost/tuple/tuple.hpp" // inject some of the tuple names into lambda namespace Boost { namespace lambda { using ::Boost::tuples::tuple; using ::Boost::tuples::null_type; } // lambda } // boost #include "ActivBoost/lambda/detail/lambda_config.hpp" #include "ActivBoost/lambda/detail/lambda_fwd.hpp" #include "ActivBoost/lambda/detail/arity_code.hpp" #include "ActivBoost/lambda/detail/actions.hpp" #include "ActivBoost/lambda/detail/lambda_traits.hpp" #include "ActivBoost/lambda/detail/function_adaptors.hpp" #include "ActivBoost/lambda/detail/return_type_traits.hpp" #include "ActivBoost/lambda/detail/select_functions.hpp" #include "ActivBoost/lambda/detail/lambda_functor_base.hpp" #include "ActivBoost/lambda/detail/lambda_functors.hpp" #include "ActivBoost/lambda/detail/ret.hpp" namespace Boost { namespace lambda { namespace { // These are constants types and need to be initialised Boost::lambda::placeholder1_type free1 = Boost::lambda::placeholder1_type(); Boost::lambda::placeholder2_type free2 = Boost::lambda::placeholder2_type(); Boost::lambda::placeholder3_type free3 = Boost::lambda::placeholder3_type(); Boost::lambda::placeholder1_type& ACTIV_BOOST_ATTRIBUTE_UNUSED _1 = free1; Boost::lambda::placeholder2_type& ACTIV_BOOST_ATTRIBUTE_UNUSED _2 = free2; Boost::lambda::placeholder3_type& ACTIV_BOOST_ATTRIBUTE_UNUSED _3 = free3; // _1, _2, ... naming scheme by Peter Dimov } // unnamed } // lambda } // boost #endif //ACTIV_BOOST_LAMBDA_CORE_HPP