]> git.donarmstrong.com Git - rsem.git/blob - boost/fusion/sequence/io/in.hpp
Updated boost to v1.55.0
[rsem.git] / boost / fusion / sequence / io / in.hpp
1 /*=============================================================================
2     Copyright (c) 1999-2003 Jaakko Jarvi
3     Copyright (c) 1999-2003 Jeremiah Willcock
4     Copyright (c) 2001-2011 Joel de Guzman
5
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_IN_05042005_0120)
10 #define BOOST_IN_05042005_0120
11
12 #include <istream>
13 #include <boost/fusion/sequence/io/detail/in.hpp>
14 #include <boost/fusion/support/is_sequence.hpp>
15
16 namespace boost { namespace fusion
17 {
18     template <typename Sequence>
19     inline std::istream&
20     in(std::istream& is, Sequence& seq)
21     {
22         detail::read_sequence(is, seq);
23         return is;
24     }
25
26     namespace operators
27     {
28         template <typename Sequence>
29         inline typename
30             boost::enable_if<
31                fusion::traits::is_sequence<Sequence>
32               , std::istream&
33             >::type
34         operator>>(std::istream& is, Sequence& seq)
35         {
36             return fusion::in(is, seq);
37         }
38     }
39     using operators::operator>>;
40 }}
41
42 #endif