Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81454 - trunk/boost/spirit/home/karma/detail
From: hartmut.kaiser_at_[hidden]
Date: 2012-11-21 09:29:36


Author: hkaiser
Date: 2012-11-21 09:29:35 EST (Wed, 21 Nov 2012)
New Revision: 81454
URL: http://svn.boost.org/trac/boost/changeset/81454

Log:
Spirit: adding karma::output_iterator::base() to access underlying output iterator
Text files modified:
   trunk/boost/spirit/home/karma/detail/output_iterator.hpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit/home/karma/detail/output_iterator.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/detail/output_iterator.hpp (original)
+++ trunk/boost/spirit/home/karma/detail/output_iterator.hpp 2012-11-21 09:29:35 EST (Wed, 21 Nov 2012)
@@ -452,6 +452,9 @@
         // plain output iterators are considered to be good all the time
         bool good() const { return true; }
 
+ // allow to access underlying output iterator
+ OutputIterator& base() { return *sink; }
+
     protected:
         // this is the wrapped user supplied output iterator
         OutputIterator* sink;


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