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
all.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\query\detail\all.hpp
Girar
Efecto
Propiedad
Historial
/*============================================================================= Copyright (c) 2001-2006 Joel de Guzman Copyright (c) 2007 Dan Marsden 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_ALL_05052005_1237) #define FUSION_ALL_05052005_1237 #include
#include
#include
#include
#include
#include
#include
#include
namespace boost { namespace fusion { namespace detail { template
inline bool linear_all(First const&, Last const&, F const&, mpl::true_) { return true; } template
inline bool linear_all(First const& first, Last const& last, F& f, mpl::false_) { typename result_of::deref
::type x = *first; return f(x) && detail::linear_all( fusion::next(first) , last , f , result_of::equal_to
::type, Last>()); } template
inline bool all(Sequence const& seq, F f, Tag) { return detail::linear_all( fusion::begin(seq) , fusion::end(seq) , f , result_of::equal_to< typename result_of::begin
::type , typename result_of::end
::type>()); } template
struct unrolled_all { template
static bool call(It const& it, F f) { return f(*it) && f(*fusion::advance_c<1>(it))&& f(*fusion::advance_c<2>(it)) && f(*fusion::advance_c<3>(it)) && detail::unrolled_all
::call(fusion::advance_c<4>(it), f); } }; template<> struct unrolled_all<3> { template
static bool call(It const& it, F f) { return f(*it) && f(*fusion::advance_c<1>(it)) && f(*fusion::advance_c<2>(it)); } }; template<> struct unrolled_all<2> { template
static bool call(It const& it, F f) { return f(*it) && f(*fusion::advance_c<1>(it)); } }; template<> struct unrolled_all<1> { template
static bool call(It const& it, F f) { return f(*it); } }; template<> struct unrolled_all<0> { template
static bool call(It const& it, F f) { return false; } }; template
inline bool all(Sequence const& seq, F f, random_access_traversal_tag) { typedef typename result_of::begin
::type begin; typedef typename result_of::end
::type end; return detail::unrolled_all
::type::value>::call( fusion::begin(seq), f); } }}} #endif
all.hpp
Dirección de la página
Dirección del archivo
Anterior 1/6
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.