1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #if !defined(FUSION_CONS_TIE_07182005_0854)
8 #define FUSION_CONS_TIE_07182005_0854
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/fusion/container/list/cons.hpp>
13 namespace boost { namespace fusion
19 template <typename Car, typename Cdr = nil_>
22 typedef cons<Car&, Cdr> type;
26 // $$$ do we really want a cons_tie? $$$
27 template <typename Car>
28 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
32 return cons<Car&>(car);
35 // $$$ do we really want a cons_tie? $$$
36 template <typename Car, typename Cdr>
37 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
38 inline cons<Car&, Cdr>
39 cons_tie(Car& car, Cdr const& cdr)
41 return cons<Car&, Cdr>(car, cdr);