1 .. Algorithms/Transformation Algorithms//reverse_remove |160
14 , typename In = |unspecified|
18 typedef |unspecified| type;
26 Returns a new sequence that contains all elements from |begin/end<Sequence>|
27 range in reverse order except those that are identical to ``T``.
29 |transformation algorithm disclaimer|
37 #include <boost/mpl/remove.hpp>
43 |Reversible Algorithm|
49 +---------------+-----------------------------------+-------------------------------+
50 | Parameter | Requirement | Description |
51 +===============+===================================+===============================+
52 | ``Sequence`` | |Forward Sequence| | An original sequence. |
53 +---------------+-----------------------------------+-------------------------------+
54 | ``T`` | Any type | A type to be removed. |
55 +---------------+-----------------------------------+-------------------------------+
56 | ``In`` | |Inserter| | An inserter. |
57 +---------------+-----------------------------------+-------------------------------+
63 |Semantics disclaimer...| |Reversible Algorithm|.
65 For any |Forward Sequence| ``s``, an |Inserter| ``in``, and arbitrary type ``x``:
70 typedef reverse_remove<s,x,in>::type r;
80 typedef reverse_remove_if< s,is_same<_,x>,in >::type r;
86 Linear. Performs exactly ``size<s>::value`` comparisons for equality, and at
87 most ``size<s>::value`` insertions.
95 typedef vector<int,float,char,float,float,double>::type types;
96 typedef reverse_remove< types,float >::type result;
98 BOOST_MPL_ASSERT(( equal< result, vector<double,char,int> > ));
104 |Transformation Algorithms|, |Reversible Algorithm|, |remove|, |reverse_remove_if|,
105 |reverse_copy|, |transform|, |replace|
108 .. copyright:: Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams
109 Distributed under the Boost Software License, Version 1.0. (See accompanying
110 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)