1 .. Algorithms/Transformation Algorithms//remove |60
14 , typename In = |unspecified|
18 typedef |unspecified| type;
25 Returns a new sequence that contains all elements from |begin/end<Sequence>|
26 range except those that are identical to ``T``.
28 .. Returns a copy of the original sequence with all elements identical to ``T``
31 |transformation algorithm disclaimer|
39 #include <boost/mpl/remove.hpp>
45 |Reversible Algorithm|
51 +---------------+-----------------------------------+-------------------------------+
52 | Parameter | Requirement | Description |
53 +===============+===================================+===============================+
54 | ``Sequence`` | |Forward Sequence| | An original sequence. |
55 +---------------+-----------------------------------+-------------------------------+
56 | ``T`` | Any type | A type to be removed. |
57 +---------------+-----------------------------------+-------------------------------+
58 | ``In`` | |Inserter| | An inserter. |
59 +---------------+-----------------------------------+-------------------------------+
65 |Semantics disclaimer...| |Reversible Algorithm|.
67 For any |Forward Sequence| ``s``, an |Inserter| ``in``, and arbitrary type ``x``:
72 typedef remove<s,x,in>::type r;
82 typedef remove_if< s,is_same<_,x>,in >::type r;
88 Linear. Performs exactly ``size<s>::value`` comparisons for equality, and at
89 most ``size<s>::value`` insertions.
97 typedef vector<int,float,char,float,float,double>::type types;
98 typedef remove< types,float >::type result;
100 BOOST_MPL_ASSERT(( equal< result, vector<int,char,double> > ));
106 |Transformation Algorithms|, |Reversible Algorithm|, |reverse_remove|, |remove_if|, |copy|, |replace|
109 .. copyright:: Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams
110 Distributed under the Boost Software License, Version 1.0. (See accompanying
111 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)