1 /*=============================================================================
2 Copyright (c) 1999-2003 Jaakko Jarvi
3 Copyright (c) 1999-2003 Jeremiah Willcock
4 Copyright (c) 2001-2011 Joel de Guzman
6 Distributed under the Boost Software License, Version 1.0. (See accompanying
7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 ==============================================================================*/
9 #if !defined(BOOST_OUT_05042005_0120)
10 #define BOOST_OUT_05042005_0120
13 #include <boost/fusion/sequence/io/detail/out.hpp>
14 #include <boost/fusion/support/is_sequence.hpp>
15 #include <boost/utility/enable_if.hpp>
16 #include <boost/mpl/or.hpp>
18 namespace boost { namespace fusion
20 template <typename Sequence>
22 out(std::ostream& os, Sequence& seq)
24 detail::print_sequence(os, seq);
30 template <typename Sequence>
33 fusion::traits::is_sequence<Sequence>
36 operator<<(std::ostream& os, Sequence const& seq)
38 return fusion::out(os, seq);
41 using operators::operator<<;