...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Returns the result type of erase, given the input sequence and range delimiting iterator types.
template< typename Sequence, typename It1, typename It2 = unspecified> struct erase { typedef unspecified type; };
Table 1.83. 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 |
result_of::erase<Sequence, It1>::type
Return type: A model of Forward Sequence.
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.
Constant.
#include <boost/fusion/algorithm/transformation/erase.hpp> #include <boost/fusion/include/erase.hpp>