Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:47:51

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
0003 
0004     Distributed under the Boost Software License, Version 1.0. (See accompanying 
0005     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 ==============================================================================*/
0007 #if !defined(FUSION_CONS_TIE_07182005_0854)
0008 #define FUSION_CONS_TIE_07182005_0854
0009 
0010 #include <boost/fusion/support/config.hpp>
0011 #include <boost/fusion/container/list/cons.hpp>
0012 
0013 namespace boost { namespace fusion
0014 {
0015     struct nil_;
0016 
0017     namespace result_of
0018     {
0019         template <typename Car, typename Cdr = nil_>
0020         struct cons_tie
0021         {
0022             typedef cons<Car&, Cdr> type;
0023         };
0024     }
0025 
0026     // $$$ do we really want a cons_tie? $$$
0027     template <typename Car>
0028     BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0029     inline cons<Car&>
0030     cons_tie(Car& car)
0031     {
0032         return cons<Car&>(car);
0033     }
0034 
0035     // $$$ do we really want a cons_tie? $$$
0036     template <typename Car, typename Cdr>
0037     BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0038     inline cons<Car&, Cdr>
0039     cons_tie(Car& car, Cdr const& cdr)
0040     {
0041         return cons<Car&, Cdr>(car, cdr);
0042     }
0043 }}
0044 
0045 #endif
0046