Back to home page

EIC code displayed by LXR

 
 

    


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

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_CREATE_NOV_21_2009_0340PM)
0007 #define BOOST_SPIRIT_KARMA_CREATE_NOV_21_2009_0340PM
0008 
0009 #if defined(_MSC_VER)
0010 #pragma once
0011 #endif
0012 
0013 #include <boost/spirit/home/karma/auto/meta_create.hpp>
0014 
0015 ///////////////////////////////////////////////////////////////////////////////
0016 namespace boost { namespace spirit { namespace result_of
0017 {
0018     ///////////////////////////////////////////////////////////////////////////
0019     template <typename T>
0020     struct create_generator
0021       : spirit::traits::meta_create<karma::domain, T> {};
0022 }}}
0023 
0024 ///////////////////////////////////////////////////////////////////////////////
0025 namespace boost { namespace spirit { namespace karma
0026 {
0027     // Main API function for generator creation from data type
0028     template <typename T>
0029     typename result_of::create_generator<T>::type
0030     create_generator()
0031     {
0032         return spirit::traits::meta_create<karma::domain, T>::call();
0033     }
0034 }}}
0035 
0036 ///////////////////////////////////////////////////////////////////////////////
0037 namespace boost { namespace spirit { namespace traits
0038 {
0039     // Meta function returning true if create_generator does return a valid
0040     // generator for the given type T.
0041     template <typename T>
0042     struct create_generator_exists
0043       : meta_create_exists<karma::domain, T> {};
0044 }}}
0045 
0046 #endif