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
erase.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\algorithm\transformation\erase.hpp
Girar
Efecto
Propiedad
Historial
/*============================================================================= Copyright (c) 2001-2006 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) ==============================================================================*/ #if !defined(FUSION_ERASE_07232005_0534) #define FUSION_ERASE_07232005_0534 #include
#include
#include
#include
#include
#include
#include
#include
#include
namespace boost { namespace fusion { namespace result_of { template
struct compute_erase_last // put this in detail!!! { typedef typename result_of::end
::type seq_last_type; typedef typename convert_iterator
::type first_type; typedef typename mpl::if_< result_of::equal_to
, first_type , typename result_of::next
::type >::type type; static type call(First const& first, mpl::false_) { return fusion::next(convert_iterator
::call(first)); } static type call(First const& first, mpl::true_) { return convert_iterator
::call(first); } static type call(First const& first) { return call(first, result_of::equal_to
()); } }; template < typename Sequence , typename First , typename Last = typename compute_erase_last
::type> struct erase { typedef typename result_of::begin
::type seq_first_type; typedef typename result_of::end
::type seq_last_type; BOOST_STATIC_ASSERT((!result_of::equal_to
::value)); typedef typename convert_iterator
::type first_type; typedef typename convert_iterator
::type last_type; typedef iterator_range
left_type; typedef iterator_range
right_type; typedef joint_view
type; }; } template
typename result_of::erase
::type erase(Sequence const& seq, First const& first) { typedef result_of::erase
result_of; typedef typename result_of::left_type left_type; typedef typename result_of::right_type right_type; typedef typename result_of::type result_type; left_type left( fusion::begin(seq) , convert_iterator
::call(first)); right_type right( fusion::result_of::compute_erase_last
::call(first) , fusion::end(seq)); return result_type(left, right); } template
typename result_of::erase
::type erase(Sequence const& seq, First const& first, Last const& last) { typedef result_of::erase
result_of; typedef typename result_of::left_type left_type; typedef typename result_of::right_type right_type; typedef typename result_of::type result_type; left_type left(fusion::begin(seq), first); right_type right(last, fusion::end(seq)); return result_type(left, right); } }} #endif
erase.hpp
Dirección de la página
Dirección del archivo
Anterior
2/19
Siguiente
Descargar
( 4 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.