Boost logo

Boost-Commit :

From: jefffaust_at_[hidden]
Date: 2007-05-24 00:29:07


Author: jefffaust
Date: 2007-05-24 00:29:06 EDT (Thu, 24 May 2007)
New Revision: 4222
URL: http://svn.boost.org/trac/boost/changeset/4222

Log:
add deque support

Text files modified:
   sandbox/explore/boost/explore/stream_container.hpp | 7 +++++++
   1 files changed, 7 insertions(+), 0 deletions(-)

Modified: sandbox/explore/boost/explore/stream_container.hpp
==============================================================================
--- sandbox/explore/boost/explore/stream_container.hpp (original)
+++ sandbox/explore/boost/explore/stream_container.hpp 2007-05-24 00:29:06 EDT (Thu, 24 May 2007)
@@ -170,6 +170,13 @@
         return stream_container(ostr, v.begin(), v.end());
     }
 
+ // stream deque<T>
+ template<typename Elem, typename Tr, typename T, typename Allocator>
+ std::basic_ostream<Elem, Tr>& operator<<(std::basic_ostream<Elem, Tr>& ostr, const std::deque<T, Allocator>& d)
+ {
+ return stream_container(ostr, d.begin(), d.end());
+ }
+
     // stream set<T>
     template<typename Elem, typename Tr, typename T, typename Compare, typename Alloc>
     std::basic_ostream<Elem, Tr>& operator<<(std::basic_ostream<Elem, Tr>& ostr, const std::set<T, Compare, Alloc>& s)


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