Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55772 - sandbox/explore/boost/explore
From: jmcintyre_at_[hidden]
Date: 2009-08-25 00:13:30


Author: jared
Date: 2009-08-25 00:13:29 EDT (Tue, 25 Aug 2009)
New Revision: 55772
URL: http://svn.boost.org/trac/boost/changeset/55772

Log:
Explore - added boost_array.hpp
Added:
   sandbox/explore/boost/explore/boost_array.hpp (contents, props changed)

Added: sandbox/explore/boost/explore/boost_array.hpp
==============================================================================
--- (empty file)
+++ sandbox/explore/boost/explore/boost_array.hpp 2009-08-25 00:13:29 EDT (Tue, 25 Aug 2009)
@@ -0,0 +1,27 @@
+//
+// list.hpp - container streaming.
+//
+// Copyright (C) 2007, Jeffrey Faust
+// Copyright (C) 2008-2009, Jared McIntyre
+//
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+
+#ifndef BOOST_EXPLORE_ARRAY_H
+#define BOOST_EXPLORE_ARRAY_H
+
+#include <boost/array.hpp>
+#include <boost/explore/stream_container.hpp>
+
+namespace boost
+{
+ // stream boost::array<T>
+ template<typename Elem, typename Tr, typename T, std::size_t N>
+ std::basic_ostream<Elem, Tr>& operator<<(std::basic_ostream<Elem, Tr>& ostr, const boost::array<T, N>& a)
+ {
+ return boost::explore::stream_container(ostr, a.begin(), a.end());
+ }
+}
+
+#endif
\ No newline at end of file


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk