2006-08-16 16:50:52 +00:00
|
|
|
/*=============================================================================
|
2008-06-28 13:45:21 +00:00
|
|
|
Copyright (c) 1999-2003 Jaakko Jarvi
|
2006-08-16 16:50:52 +00:00
|
|
|
Copyright (c) 1999-2003 Jeremiah Willcock
|
2011-09-16 05:30:23 +00:00
|
|
|
Copyright (c) 2001-2011 Joel de Guzman
|
2006-08-16 16:50:52 +00:00
|
|
|
|
2007-03-02 10:44:14 +00:00
|
|
|
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)
|
2006-08-16 16:50:52 +00:00
|
|
|
==============================================================================*/
|
|
|
|
#if !defined(BOOST_OUT_05042005_0120)
|
|
|
|
#define BOOST_OUT_05042005_0120
|
|
|
|
|
2006-11-20 06:18:12 +00:00
|
|
|
#include <ostream>
|
2006-08-16 16:50:52 +00:00
|
|
|
#include <boost/fusion/sequence/io/detail/out.hpp>
|
|
|
|
#include <boost/fusion/support/is_sequence.hpp>
|
|
|
|
#include <boost/utility/enable_if.hpp>
|
|
|
|
#include <boost/mpl/or.hpp>
|
|
|
|
|
|
|
|
namespace boost { namespace fusion
|
|
|
|
{
|
2006-08-23 02:37:18 +00:00
|
|
|
template <typename Sequence>
|
2006-11-21 02:01:13 +00:00
|
|
|
inline std::ostream&
|
|
|
|
out(std::ostream& os, Sequence& seq)
|
2006-08-16 16:50:52 +00:00
|
|
|
{
|
|
|
|
detail::print_sequence(os, seq);
|
|
|
|
return os;
|
|
|
|
}
|
2006-11-21 02:01:13 +00:00
|
|
|
|
|
|
|
namespace operators
|
|
|
|
{
|
|
|
|
template <typename Sequence>
|
|
|
|
inline typename
|
|
|
|
enable_if<
|
|
|
|
fusion::traits::is_sequence<Sequence>
|
|
|
|
, std::ostream&
|
|
|
|
>::type
|
|
|
|
operator<<(std::ostream& os, Sequence const& seq)
|
|
|
|
{
|
|
|
|
return fusion::out(os, seq);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
using operators::operator<<;
|
2006-08-16 16:50:52 +00:00
|
|
|
}}
|
|
|
|
|
|
|
|
#endif
|