/*============================================================================= Copyright (c) 2003 Joel de Guzman Use, modification and distribution is 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(FUSION_ALGORITHM_REMOVE_IF_HPP) #define FUSION_ALGORITHM_REMOVE_IF_HPP #include #include namespace boost { namespace fusion { namespace meta { template struct remove_if { typedef filter_view > type; }; } namespace function { struct remove_if { template struct apply : meta::remove_if {}; template inline typename apply::type operator()(Sequence const& seq, Pred) const { return filter_view >(seq); } template inline typename apply::type operator()(Sequence& seq, Pred) const { return filter_view >(seq); } }; } function::remove_if const remove_if = function::remove_if(); }} #endif