x
Yes
No
Do you want to visit DriveHQ English website?
Inicio
Características
Precios
Prueba gratuita
Software cliente
Acerca de nosotros
Servidor de archivos
|
Solución de copias de seguridad
|
Servidor FTP
|
Servidor de correo electrónico
|
Alojamiento web
|
Software cliente
Servidor de archivos
Solución de copia de seguridad
Servidor FTP
Servidor de correo electrónico
Alojamiento web
Software cliente
unfused_typed.hpp - Hosted on DriveHQ Cloud IT Platform
Arriba
Subir
Descargar
Compartir
Publicar
Nueva carpeta
Nuevo archivo
Copiar
Cortar
Eliminar
Pegar
Clasificación
Actualizar
Ruta de la carpeta: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\fusion\functional\adapter\unfused_typed.hpp
Girar
Efecto
Propiedad
Historial
/*============================================================================= Copyright (c) 2006-2007 Tobias Schwinger Use modification and distribution are subject to 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_FUSION_FUNCTIONAL_ADAPTER_UNFUSED_TYPED_HPP_INCLUDED) #if !defined(BOOST_PP_IS_ITERATING) #include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
namespace boost { namespace fusion { template
class unfused_typed; //----- ---- --- -- - - - - namespace detail { template
struct unfused_typed_impl; } template
class unfused_typed : public detail::unfused_typed_impl < unfused_typed
, Function, Sequence, result_of::size
::value > { Function fnc_transformed; template
friend struct detail::unfused_typed_impl; typedef typename detail::call_param
::type func_const_fwd_t; public: inline explicit unfused_typed(func_const_fwd_t f = Function()) : fnc_transformed(f) { } }; #define BOOST_PP_FILENAME_1
#define BOOST_PP_ITERATION_LIMITS (0,BOOST_FUSION_UNFUSED_TYPED_MAX_ARITY) #include BOOST_PP_ITERATE() }} namespace boost { template
struct result_of< boost::fusion::unfused_typed
const () > : boost::fusion::unfused_typed
::template result< boost::fusion::unfused_typed
const () > { }; template
struct result_of< boost::fusion::unfused_typed
() > : boost::fusion::unfused_typed
::template result< boost::fusion::unfused_typed
() > { }; } #define BOOST_FUSION_FUNCTIONAL_ADAPTER_UNFUSED_TYPED_HPP_INCLUDED #else // defined(BOOST_PP_IS_ITERATING) /////////////////////////////////////////////////////////////////////////////// // // Preprocessor vertical repetition code // /////////////////////////////////////////////////////////////////////////////// #define N BOOST_PP_ITERATION() namespace detail { template
struct unfused_typed_impl
{ typedef typename detail::qf_c
::type function_c; typedef typename detail::qf
::type function; typedef typename result_of::as_vector
::type arg_vector_t; public: #define M(z,i,s) \ typename call_param
::type>::type a##i inline typename boost::result_of< function_c(arg_vector_t &) >::type operator()(BOOST_PP_ENUM(N,M,arg_vector_t)) const { #if N > 0 arg_vector_t arg(BOOST_PP_ENUM_PARAMS(N,a)); #else arg_vector_t arg; #endif return static_cast
(this)->fnc_transformed(arg); } inline typename boost::result_of< function(arg_vector_t &) >::type operator()(BOOST_PP_ENUM(N,M,arg_vector_t)) { #if N > 0 arg_vector_t arg(BOOST_PP_ENUM_PARAMS(N,a)); #else arg_vector_t arg; #endif return static_cast
(this)->fnc_transformed(arg); } #undef M template
struct result { typedef void type; }; template
struct result< Self const (BOOST_PP_ENUM_PARAMS(N,T)) > : boost::result_of< function_c(arg_vector_t &) > { }; template
struct result< Self (BOOST_PP_ENUM_PARAMS(N,T)) > : boost::result_of< function(arg_vector_t &) > { }; }; } // namespace detail #undef N #endif // defined(BOOST_PP_IS_ITERATING) #endif
unfused_typed.hpp
Dirección de la página
Dirección del archivo
Anterior
8/8 Siguiente
Descargar
( 5 KB )
Comments
Total ratings:
0
Average rating:
No clasificado
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.