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

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
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;
};

Table 1.94. 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:

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