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

📄 as_actor.hpp

📁 Boost provides free peer-reviewed portable C++ source libraries. We emphasize libraries that work
💻 HPP
字号:
/*=============================================================================    Copyright (c) 2001-2007 Joel de Guzman    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)==============================================================================*/#ifndef PHOENIX_CORE_AS_ACTOR_HPP#define PHOENIX_CORE_AS_ACTOR_HPP#include <boost/spirit/home/phoenix/core/actor.hpp>namespace boost { namespace phoenix{    template <typename T>    struct as_actor_base; // defined in value.hpp    template <typename Base>    struct as_actor_base<actor<Base> >    {        typedef Base type;        static Base const&        convert(actor<Base> const& x)        {            return x;        }    };    template <>    struct as_actor_base<fusion::void_>    {        typedef fusion::void_ type;        struct error_attempting_to_convert_void_type_to_an_actor {};        static void        convert(error_attempting_to_convert_void_type_to_an_actor);    };    template <>    struct as_actor_base<void>    {        typedef void type;        struct error_attempting_to_convert_void_type_to_an_actor {};        static void        convert(error_attempting_to_convert_void_type_to_an_actor);    };    template <typename T>    struct as_actor    {        typedef actor<typename as_actor_base<T>::type> type;        static type        convert(T const& x)        {            return as_actor_base<T>::convert(x);        }    };}}#endif

⌨️ 快捷键说明

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