Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/fusion/sequence/io/out.hpp @ 16:2665513ce2d3
Add boost headers
author | Chris Cannam |
---|---|
date | Tue, 05 Aug 2014 11:11:38 +0100 |
parents | |
children | c530137014c0 |
rev | line source |
---|---|
Chris@16 | 1 /*============================================================================= |
Chris@16 | 2 Copyright (c) 1999-2003 Jaakko Jarvi |
Chris@16 | 3 Copyright (c) 1999-2003 Jeremiah Willcock |
Chris@16 | 4 Copyright (c) 2001-2011 Joel de Guzman |
Chris@16 | 5 |
Chris@16 | 6 Distributed under the Boost Software License, Version 1.0. (See accompanying |
Chris@16 | 7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 8 ==============================================================================*/ |
Chris@16 | 9 #if !defined(BOOST_OUT_05042005_0120) |
Chris@16 | 10 #define BOOST_OUT_05042005_0120 |
Chris@16 | 11 |
Chris@16 | 12 #include <ostream> |
Chris@16 | 13 #include <boost/fusion/sequence/io/detail/out.hpp> |
Chris@16 | 14 #include <boost/fusion/support/is_sequence.hpp> |
Chris@16 | 15 #include <boost/utility/enable_if.hpp> |
Chris@16 | 16 #include <boost/mpl/or.hpp> |
Chris@16 | 17 |
Chris@16 | 18 namespace boost { namespace fusion |
Chris@16 | 19 { |
Chris@16 | 20 template <typename Sequence> |
Chris@16 | 21 inline std::ostream& |
Chris@16 | 22 out(std::ostream& os, Sequence& seq) |
Chris@16 | 23 { |
Chris@16 | 24 detail::print_sequence(os, seq); |
Chris@16 | 25 return os; |
Chris@16 | 26 } |
Chris@16 | 27 |
Chris@16 | 28 namespace operators |
Chris@16 | 29 { |
Chris@16 | 30 template <typename Sequence> |
Chris@16 | 31 inline typename |
Chris@16 | 32 boost::enable_if< |
Chris@16 | 33 fusion::traits::is_sequence<Sequence> |
Chris@16 | 34 , std::ostream& |
Chris@16 | 35 >::type |
Chris@16 | 36 operator<<(std::ostream& os, Sequence const& seq) |
Chris@16 | 37 { |
Chris@16 | 38 return fusion::out(os, seq); |
Chris@16 | 39 } |
Chris@16 | 40 } |
Chris@16 | 41 using operators::operator<<; |
Chris@16 | 42 }} |
Chris@16 | 43 |
Chris@16 | 44 #endif |