PageRenderTime 19ms CodeModel.GetById 15ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/Src/Dependencies/Boost/boost/fusion/sequence/io/in.hpp

http://hadesmem.googlecode.com/
C++ Header | 42 lines | 30 code | 4 blank | 8 comment | 0 complexity | ee26e975c6f87668881e18cefa38df56 MD5 | raw file
 1/*=============================================================================
 2    Copyright (c) 1999-2003 Jaakko Jarvi
 3    Copyright (c) 1999-2003 Jeremiah Willcock
 4    Copyright (c) 2001-2006 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
16namespace 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            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