| Home | Libraries | People | FAQ | More

##### 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.93. 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:

- A model of Forward Sequence.
- A model of Associative Sequence if `Sequence` implements the Associative Sequence model.

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>