123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- #if !defined(BOOST_SPIRIT_KARMA_BOOL_POLICIES_SEP_28_2009_1203PM)
- #define BOOST_SPIRIT_KARMA_BOOL_POLICIES_SEP_28_2009_1203PM
- #if defined(_MSC_VER)
- #pragma once
- #endif
- #include <boost/spirit/home/support/char_class.hpp>
- #include <boost/spirit/home/karma/generator.hpp>
- #include <boost/spirit/home/karma/char.hpp>
- #include <boost/spirit/home/karma/numeric/detail/numeric_utils.hpp>
- namespace boost { namespace spirit { namespace karma
- {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- template <typename T = bool>
- struct bool_policies
- {
-
-
-
- typedef T value_type;
-
-
-
-
-
-
- typedef mpl::int_<generator_properties::no_properties> properties;
-
-
-
-
-
-
-
-
-
-
-
-
-
- template <typename Inserter, typename OutputIterator, typename Policies>
- static bool
- call (OutputIterator& sink, T n, Policies const& p)
- {
- return Inserter::call_n(sink, n, p);
- }
-
-
-
-
-
-
-
-
-
-
-
-
- template <typename CharEncoding, typename Tag, typename OutputIterator>
- static bool generate_true(OutputIterator& sink, T)
- {
- return string_inserter<CharEncoding, Tag>::call(sink, "true");
- }
-
-
-
-
-
-
-
-
-
-
-
-
- template <typename CharEncoding, typename Tag, typename OutputIterator>
- static bool generate_false(OutputIterator& sink, T)
- {
- return string_inserter<CharEncoding, Tag>::call(sink, "false");
- }
- };
- }}}
- #endif
|