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
deep_copy.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\xpressive\proto\deep_copy.hpp
Girar
Efecto
Propiedad
Historial
#ifndef BOOST_PP_IS_ITERATING /////////////////////////////////////////////////////////////////////////////// /// \file deep_copy.hpp /// Replace all nodes stored by reference by nodes stored by value. // // Copyright 2007 Eric Niebler. 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 BOOST_PROTO_DEEP_COPY_HPP_EAN_11_21_2006 #define BOOST_PROTO_DEEP_COPY_HPP_EAN_11_21_2006 #include
#include
#include
#include
#include
#include
#include
#include
#include
namespace boost { namespace proto { namespace detail { template
struct deep_copy_impl; template
struct deep_copy_impl
{ typedef typename terminal
::type>::type expr_type; typedef typename Expr::proto_domain::template apply
::type type; template
static type call(Expr2 const &expr) { return Expr::proto_domain::make(expr_type::make(proto::arg(expr))); } }; } namespace result_of { template
struct deep_copy : detail::deep_copy_impl
{}; } namespace functional { struct deep_copy { template
struct result; template
struct result
: result_of::deep_copy
::type> {}; template
typename result_of::deep_copy
::type operator()(Expr const &expr) const { return result_of::deep_copy
::call(expr); } }; } functional::deep_copy const deep_copy = {}; namespace detail { #define BOOST_PROTO_DEFINE_DEEP_COPY_TYPE(z, n, data)\ typename deep_copy_impl
::type #define BOOST_PROTO_DEFINE_DEEP_COPY_FUN(z, n, data)\ proto::deep_copy(expr.proto_base().BOOST_PP_CAT(arg, n)) #define BOOST_PP_ITERATION_PARAMS_1 (3, (1, BOOST_PROTO_MAX_ARITY,
)) #include BOOST_PP_ITERATE() #undef BOOST_PROTO_DEFINE_DEEP_COPY_FUN #undef BOOST_PROTO_DEFINE_DEEP_COPY_TYPE } }} #endif // BOOST_PROTO_COMPILER_DEEP_COPY_HPP_EAN_11_21_2006 #else #define N BOOST_PP_ITERATION() template
struct deep_copy_impl
{ typedef expr
> expr_type; typedef typename Expr::proto_domain::template apply
::type type; template
static type call(Expr2 const &expr) { expr_type that = { BOOST_PP_ENUM(N, BOOST_PROTO_DEFINE_DEEP_COPY_FUN, ~) }; return Expr::proto_domain::make(that); } }; #undef N #endif
deep_copy.hpp
Dirección de la página
Dirección del archivo
Anterior
4/21
Siguiente
Descargar
( 3 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.