/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. Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. ==============================================================================*/
  8. #if !defined(BOOST_IN_05042005_0120)
  9. #define BOOST_IN_05042005_0120
  10. #include <istream>
  11. #include <boost/fusion/sequence/io/detail/in.hpp>
  12. #include <boost/fusion/support/is_sequence.hpp>
  13. namespace boost { namespace fusion
  14. {
  15. template <typename Sequence>
  16. inline std::istream&
  17. in(std::istream& is, Sequence& seq)
  18. {
  19. detail::read_sequence(is, seq);
  20. return is;
  21. }
  22. namespace operators
  23. {
  24. template <typename Sequence>
  25. inline typename
  26. enable_if<
  27. fusion::traits::is_sequence<Sequence>
  28. , std::istream&
  29. >::type
  30. operator>>(std::istream& is, Sequence& seq)
  31. {
  32. return fusion::in(is, seq);
  33. }
  34. }
  35. using operators::operator>>;
  36. }}
  37. #endif