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

PrevUpHomeNext
erase

Returns the result type of erase, given the input sequence and range delimiting iterator types.

Description
Synopsis
template<
    typename Sequence,
    typename It1,
    typename It2 = unspecified>
struct erase
{
    typedef unspecified type;
};

Table 1.97. Parameters

Parameter

Requirement

Description

Sequence

A model of Forward Sequence

Operation's argument

It1

A model of Forward Iterator

Operation's argument

It2

A model of Forward Iterator

Operation's argument


Expression Semantics
result_of::erase<Sequence, It1>::type

Return type:

Semantics: Returns a new sequence with the element at It1 removed.

result_of::erase<Sequence, It1, It2>::type

Return type: A model of Forward Sequence.

Semantics: Returns a new sequence with the elements between It1 and It2 removed.

Complexity

Constant.

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

PrevUpHomeNext