|  | Home | Libraries | People | FAQ | More | 
Returns a new sequence, with all the elements of the original sequence, except those of a given type.
template<
    typename T,
    typename Sequence
    >
typename result_of::remove<Sequence const, T>::type remove(Sequence const& seq);
Table 1.72. Parameters
| Parameter | Requirement | Description | 
|---|---|---|
| 
                       | A model of Forward Sequence | Operation's argument | 
| 
                       | Any type | Type to remove | 
remove<T>(seq);
Return type:
Sequence
                implements the Associative
                Sequence model.
              
            Semantics: Returns a new sequence, containing
            all the elements of seq,
            in their original order, except those of type T.
            Equivalent to remove_if<boost::is_same<_,T> >(seq)
Constant. Returns a view which is lazily evaluated.
#include <boost/fusion/algorithm/transformation/remove.hpp> #include <boost/fusion/include/remove.hpp>
constvector<int,double> vec(1,2.0); assert(remove<double>(vec) ==make_vector(1));