Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:47:48

0001 /*==============================================================================
0002     Copyright (c) 2005-2010 Joel de Guzman
0003     Copyright (c) 2010 Thomas Heller
0004     Copyright (c) 2014 John Fletcher
0005  
0006     Distributed under the Boost Software License, Version 1.0. (See accompanying
0007     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0008 ==============================================================================*/
0009 #ifndef BOOST_PHOENIX_DEBUG_HPP
0010 #define BOOST_PHOENIX_DEBUG_HPP
0011 
0012 #include <iostream>
0013 #include <boost/phoenix/version.hpp>
0014 // Some other things may be needed here...
0015 
0016 // Include all proto for the time being...
0017 #include <boost/proto/proto.hpp>
0018 
0019 namespace boost { namespace phoenix
0020   {
0021 
0022     // For now just drop through to the Proto versions.
0023 
0024     /// \brief Pretty-print a Phoenix expression tree using the Proto code.
0025     ///
0026     /// \note Equivalent to <tt>functional::display_expr(0, sout)(expr)</tt>
0027     /// \param expr The Phoenix expression tree to pretty-print
0028     /// \param sout The \c ostream to which the output should be
0029     ///             written. If not specified, defaults to
0030     ///             <tt>std::cout</tt>.
0031     template<typename Expr>
0032     void display_expr(Expr const &expr, std::ostream &sout)
0033     {
0034       boost::proto::display_expr(expr,sout);
0035     }
0036 
0037     /// \overload
0038     ///
0039     template<typename Expr>
0040     void display_expr(Expr const &expr)
0041     {
0042       boost::proto::display_expr(expr);
0043     }
0044 
0045   } // namespace phoenix
0046 } // namespace boost
0047 
0048 
0049 
0050 #endif