Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-19 09:47:39

0001 //  Copyright (c) 2001-2011 Hartmut Kaiser
0002 //
0003 //  Distributed under the Boost Software License, Version 1.0. (See accompanying
0004 //  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0005 
0006 #if !defined(BOOST_SPIRIT_KARMA_DELIMIT_FEB_20_2007_1208PM)
0007 #define BOOST_SPIRIT_KARMA_DELIMIT_FEB_20_2007_1208PM
0008 
0009 #if defined(_MSC_VER)
0010 #pragma once
0011 #endif
0012 
0013 #include <boost/spirit/home/support/unused.hpp>
0014 #include <boost/spirit/home/karma/detail/unused_delimiter.hpp>
0015 
0016 namespace boost { namespace spirit { namespace karma
0017 {
0018     ///////////////////////////////////////////////////////////////////////////
0019     //  Do delimiting. This is equivalent to p << d. The function is a
0020     //  no-op if spirit::unused is passed as the delimiter-generator.
0021     ///////////////////////////////////////////////////////////////////////////
0022     template <typename OutputIterator, typename Delimiter>
0023     inline bool delimit_out(OutputIterator& sink, Delimiter const& d)
0024     {
0025         return d.generate(sink, unused, unused, unused);
0026     }
0027 
0028     template <typename OutputIterator>
0029     inline bool delimit_out(OutputIterator&, unused_type)
0030     {
0031         return true;
0032     }
0033 
0034     ///////////////////////////////////////////////////////////////////////////
0035     template <typename OutputIterator, typename Delimiter>
0036     inline bool delimit_out(OutputIterator&
0037       , detail::unused_delimiter<Delimiter> const&)
0038     {
0039         return true;
0040     }
0041 
0042 }}}
0043 
0044 #endif
0045