2006-08-16 16:50:52 +00:00
|
|
|
|
/*=============================================================================
|
|
|
|
|
Copyright (c) 1999-2003 Jaakko J<EFBFBD>rvi
|
|
|
|
|
Copyright (c) 1999-2003 Jeremiah Willcock
|
|
|
|
|
Copyright (c) 2001-2006 Joel de Guzman
|
|
|
|
|
|
2007-03-16 14:49:48 +00:00
|
|
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
2007-03-02 10:44:14 +00:00
|
|
|
|
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_IN_05042005_0120)
|
|
|
|
|
#define BOOST_IN_05042005_0120
|
|
|
|
|
|
2006-11-20 06:18:12 +00:00
|
|
|
|
#include <istream>
|
2006-08-16 16:50:52 +00:00
|
|
|
|
#include <boost/fusion/sequence/io/detail/in.hpp>
|
2007-03-16 14:49:48 +00:00
|
|
|
|
#include <boost/fusion/support/is_sequence.hpp>
|
2006-08-16 16:50:52 +00:00
|
|
|
|
|
|
|
|
|
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::istream&
|
|
|
|
|
in(std::istream& is, Sequence& seq)
|
2006-08-16 16:50:52 +00:00
|
|
|
|
{
|
|
|
|
|
detail::read_sequence(is, seq);
|
|
|
|
|
return is;
|
|
|
|
|
}
|
2007-03-16 14:49:48 +00:00
|
|
|
|
|
2006-11-21 02:01:13 +00:00
|
|
|
|
namespace operators
|
|
|
|
|
{
|
|
|
|
|
template <typename Sequence>
|
|
|
|
|
inline typename
|
|
|
|
|
enable_if<
|
|
|
|
|
fusion::traits::is_sequence<Sequence>
|
|
|
|
|
, std::istream&
|
|
|
|
|
>::type
|
|
|
|
|
operator>>(std::istream& is, Sequence& seq)
|
|
|
|
|
{
|
|
|
|
|
return fusion::in(is, seq);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
using operators::operator>>;
|
2006-08-16 16:50:52 +00:00
|
|
|
|
}}
|
|
|
|
|
|
|
|
|
|
#endif
|