Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Click here to view the latest version of this page.
PrevUpHomeNext
remove_if
Description

Returns the result type of remove_if, given the input sequence and unary MPL Lambda Expression predicate types.

Synopsis
template<
    typename Sequence,
    typename Pred
    >
struct remove_if
{
    typedef unspecified type;
};

Table1.80.Parameters

Parameter

Requirement

Description

Sequence

A model of Forward Sequence

Operation's argument

Pred

A model of unary MPL Lambda Expression

Remove elements which evaluate to boost::mpl::true_


Expression Semantics
result_of::remove_if<Sequence, Pred>::type

Return type: A model of Forward Sequence.

Semantics: Returns a sequence containing the elements of Sequence for which Pred evaluates to boost::mpl::false_.

Complexity

Constant.

Header
#include <boost/fusion/algorithm/transformation/remove_if.hpp>
#include <boost/fusion/include/remove_if.hpp>

PrevUpHomeNext