| Home | Libraries | People | FAQ | More

##### clear

###### Description

`clear` returns an empty sequence.

###### Synposis

    template<
        typename Sequence
        >
    typename result_of::clear<Sequence const>::type clear(Sequence const& seq);

Table 1.73. Parameters

Parameter | Requirement | Description
--- | --- | ---
`seq` | A model of Forward Sequence | Operation's argument

###### Expression Semantics

    clear(seq);

Return type: A model of Forward Sequence.

Expression Semantics: Returns a sequence with no elements.

###### Complexity

Constant.

###### Header

    #include <boost/fusion/algorithm/transformation/clear.hpp>
    #include <boost/fusion/include/clear.hpp>

###### Example

    assert(clear(make_vector(1,2,3)) == make_vector());