/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// escape.hpp
-// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
+// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
// Use, modification and distribution is subject to 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)
#include <boost/iterator/iterator_adaptor.hpp>
#include <boost/iterator/iterator_traits.hpp>
-namespace boost {
+namespace boost {
namespace archive {
namespace iterators {
// insert escapes into text
template<class Derived, class Base>
-class escape :
+class escape :
public boost::iterator_adaptor<
- Derived,
- Base,
+ Derived,
+ Base,
typename boost::iterator_value<Base>::type,
single_pass_traversal_tag,
typename boost::iterator_value<Base>::type
friend class boost::iterator_core_access;
typedef typename boost::iterator_adaptor<
- Derived,
- Base,
+ Derived,
+ Base,
base_value_type,
single_pass_traversal_tag,
base_value_type
m_full = true;
}
- //Access the value referred to
+ //Access the value referred to
reference_type dereference() const {
if(!m_full)
const_cast<this_t *>(this)->dereference_impl();
bool m_full;
base_value_type m_current_value;
public:
- escape(Base base) :
+ escape(Base base) :
super_t(base),
m_bnext(NULL),
m_bend(NULL),