/usr/include/boost/spirit/home/karma/detail
NameSizeModeActions
alternative_function.hpp100960644editdlrm
as.hpp22190644editdlrm
attributes.hpp27370644editdlrm
default_width.hpp23460644editdlrm
enable_lit.hpp9240644editdlrm
extract_from.hpp95930644editdlrm
fail_function.hpp19750644editdlrm
generate.hpp50660644editdlrm
generate_auto.hpp20150644editdlrm
generate_to.hpp21900644editdlrm
get_casetag.hpp9570644editdlrm
get_stricttag.hpp10810644editdlrm
indirect_iterator.hpp28820644editdlrm
output_iterator.hpp209330644editdlrm
pass_container.hpp159550644editdlrm
string_compare.hpp19770644editdlrm
string_generate.hpp40100644editdlrm
unused_delimiter.hpp15960644editdlrm
Edit: /usr/include/boost/spirit/home/karma/detail/indirect_iterator.hpp (2882B)
// Copyright (c) 2001-2011 Hartmut Kaiser // // 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_SPIRIT_KARMA_DETAIL_INDIRECT_ITERATOR_HPP #define BOOST_SPIRIT_KARMA_DETAIL_INDIRECT_ITERATOR_HPP #if defined(_MSC_VER) #pragma once #endif #include #include #include // for std::iterator_traits /////////////////////////////////////////////////////////////////////////////// namespace boost { namespace spirit { namespace karma { namespace detail { /////////////////////////////////////////////////////////////////////// // This is a wrapper for any iterator allowing to pass a reference of it // to the components of the sequence template class indirect_iterator : public boost::iterator_facade< indirect_iterator , typename std::iterator_traits::value_type , boost::forward_traversal_tag , typename std::iterator_traits::reference> { typedef typename std::iterator_traits::value_type base_value_type; typedef typename std::iterator_traits::reference base_reference_type; typedef boost::iterator_facade< indirect_iterator, base_value_type , boost::forward_traversal_tag, base_reference_type > base_type; public: indirect_iterator(Iterator& iter) : iter_(&iter) {} indirect_iterator(indirect_iterator const& iter) : iter_(iter.iter_) {} private: friend class boost::iterator_core_access; void increment() { ++*iter_; } bool equal(indirect_iterator const& other) const { return *iter_ == *other.iter_; } base_reference_type dereference() const { return **iter_; } private: Iterator* iter_; }; }}}} /////////////////////////////////////////////////////////////////////////////// namespace boost { namespace spirit { namespace traits { template struct make_indirect_iterator { typedef karma::detail::indirect_iterator type; }; template struct make_indirect_iterator > { typedef karma::detail::indirect_iterator type; }; template <> struct make_indirect_iterator { typedef unused_type const* type; }; template struct make_indirect_iterator : make_indirect_iterator {}; }}} #endif