⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 char_token_def.hpp

📁 Boost provides free peer-reviewed portable C++ source libraries. We emphasize libraries that work
💻 HPP
字号:
//  Copyright (c) 2001-2008 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)#if !defined(BOOST_SPIRIT_LEX_CHAR_TOKEN_DEF_MAR_28_2007_0626PM)#define BOOST_SPIRIT_LEX_CHAR_TOKEN_DEF_MAR_28_2007_0626PM#if defined(_MSC_VER) && (_MSC_VER >= 1020)#pragma once      // MS compatible compilers support #pragma once#endif#include <boost/spirit/home/support/component.hpp>namespace boost { namespace spirit { namespace lex{     ///////////////////////////////////////////////////////////////////////////    //    //  char_token_def     //      represents a single character token definition    //    ///////////////////////////////////////////////////////////////////////////    struct char_token_def    {        template <typename Component, typename LexerDef, typename String>        static void         collect(Component const& component, LexerDef& lexdef,             String const& state)        {            typedef typename result_of::subject<Component>::type char_type;                        char_type c = subject(component);            lexdef.add_token (state.c_str(), lex::detail::escape(c),                 static_cast<std::size_t>(c));        }    };                }}}  // namespace boost::spirit::lex#endif 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -