Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 1 | // -- core.hpp -- Boost Lambda Library ------------------------------------- |
| 2 | // |
| 3 | // Copyright (C) 2000 Gary Powell (powellg@amazon.com) |
| 4 | // Copyright (C) 1999, 2000 Jaakko Jarvi (jaakko.jarvi@cs.utu.fi) |
| 5 | // |
| 6 | // Distributed under the Boost Software License, Version 1.0. (See |
| 7 | // accompanying file LICENSE_1_0.txt or copy at |
| 8 | // http://www.boost.org/LICENSE_1_0.txt) |
| 9 | // |
| 10 | // For more information, see www.boost.org |
| 11 | // |
| 12 | // Includes the core of LL, without any real features for client: |
| 13 | // |
| 14 | // tuples, lambda functors, return type deduction templates, |
| 15 | // argument substitution mechanism (select functions) |
| 16 | // |
| 17 | // Some functionality comes as well: |
| 18 | // Assignment and subscript operators, as well as function |
| 19 | // call operator for placeholder variables. |
| 20 | // ------------------------------------------------------------------------- |
| 21 | |
| 22 | #ifndef BOOST_LAMBDA_CORE_HPP |
| 23 | #define BOOST_LAMBDA_CORE_HPP |
| 24 | |
| 25 | #include "ndnboost/type_traits/transform_traits.hpp" |
| 26 | #include "ndnboost/type_traits/cv_traits.hpp" |
| 27 | |
| 28 | #include "ndnboost/tuple/tuple.hpp" |
| 29 | |
| 30 | // inject some of the tuple names into lambda |
| 31 | namespace ndnboost { |
| 32 | namespace lambda { |
| 33 | |
| 34 | using ::ndnboost::tuples::tuple; |
| 35 | using ::ndnboost::tuples::null_type; |
| 36 | |
| 37 | } // lambda |
| 38 | } // boost |
| 39 | |
| 40 | #include "ndnboost/lambda/detail/lambda_config.hpp" |
| 41 | #include "ndnboost/lambda/detail/lambda_fwd.hpp" |
| 42 | |
| 43 | #include "ndnboost/lambda/detail/arity_code.hpp" |
| 44 | #include "ndnboost/lambda/detail/actions.hpp" |
| 45 | |
| 46 | #include "ndnboost/lambda/detail/lambda_traits.hpp" |
| 47 | |
| 48 | #include "ndnboost/lambda/detail/function_adaptors.hpp" |
| 49 | #include "ndnboost/lambda/detail/return_type_traits.hpp" |
| 50 | |
| 51 | #include "ndnboost/lambda/detail/select_functions.hpp" |
| 52 | |
| 53 | #include "ndnboost/lambda/detail/lambda_functor_base.hpp" |
| 54 | |
| 55 | #include "ndnboost/lambda/detail/lambda_functors.hpp" |
| 56 | |
| 57 | #include "ndnboost/lambda/detail/ret.hpp" |
| 58 | |
| 59 | namespace ndnboost { |
| 60 | namespace lambda { |
| 61 | |
| 62 | namespace { |
| 63 | |
| 64 | // These are constants types and need to be initialised |
| 65 | ndnboost::lambda::placeholder1_type free1 = ndnboost::lambda::placeholder1_type(); |
| 66 | ndnboost::lambda::placeholder2_type free2 = ndnboost::lambda::placeholder2_type(); |
| 67 | ndnboost::lambda::placeholder3_type free3 = ndnboost::lambda::placeholder3_type(); |
| 68 | |
| 69 | ndnboost::lambda::placeholder1_type& _1 = free1; |
| 70 | ndnboost::lambda::placeholder2_type& _2 = free2; |
| 71 | ndnboost::lambda::placeholder3_type& _3 = free3; |
| 72 | // _1, _2, ... naming scheme by Peter Dimov |
| 73 | } // unnamed |
| 74 | |
| 75 | } // lambda |
| 76 | } // boost |
| 77 | |
| 78 | |
| 79 | #endif //BOOST_LAMBDA_CORE_HPP |