/*============================================================================= Copyright (c) 1999-2003 Jaakko Järvi Copyright (c) 1999-2003 Jeremiah Willcock Copyright (c) 2001-2003 Joel de Guzman Copyright (c) 2004 Peder Holt Use, modification and distribution is subject to 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) ==============================================================================*/ #if !defined(BOOST_IO_HPP) #define BOOST_IO_HPP #include #include #include namespace boost { namespace fusion { /////////////////////////////////////////////////////////////////////////// // // Sequence I/O (<< and >> operators) // /////////////////////////////////////////////////////////////////////////// template inline OStream& operator<<(OStream& os, sequence_base const& seq) { detail::print_sequence(os, as_fusion_sequence::convert(seq.cast())); return os; } template inline IStream& operator>>(IStream& is, sequence_base& seq) { detail::read_sequence(is, as_fusion_sequence::convert(seq.cast())); return is; } }} #endif