1 // Copyright (c) 2001-2011 Hartmut Kaiser
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #if !defined(BOOST_SPIRIT_KARMA_DELIMIT_FEB_20_2007_1208PM)
7 #define BOOST_SPIRIT_KARMA_DELIMIT_FEB_20_2007_1208PM
13 #include <boost/spirit/home/support/unused.hpp>
14 #include <boost/spirit/home/karma/detail/unused_delimiter.hpp>
16 namespace boost { namespace spirit { namespace karma
18 ///////////////////////////////////////////////////////////////////////////
19 // Do delimiting. This is equivalent to p << d. The function is a
20 // no-op if spirit::unused is passed as the delimiter-generator.
21 ///////////////////////////////////////////////////////////////////////////
22 template <typename OutputIterator, typename Delimiter>
23 inline bool delimit_out(OutputIterator& sink, Delimiter const& d)
25 return d.generate(sink, unused, unused, unused);
28 template <typename OutputIterator>
29 inline bool delimit_out(OutputIterator&, unused_type)
34 ///////////////////////////////////////////////////////////////////////////
35 template <typename OutputIterator, typename Delimiter>
36 inline bool delimit_out(OutputIterator&
37 , detail::unused_delimiter<Delimiter> const&)