1 .. Algorithms/Transformation Algorithms//reverse |100
13 , typename In = |unspecified|
17 typedef |unspecified| type;
25 Returns a reversed copy of the original sequence. ``reverse`` is a synonym for
28 |transformation algorithm disclaimer|
35 #include <boost/mpl/reverse.hpp>
41 +---------------+-----------------------------------+-------------------------------+
42 | Parameter | Requirement | Description |
43 +===============+===================================+===============================+
44 | ``Sequence`` | |Forward Sequence| | A sequence to reverse. |
45 +---------------+-----------------------------------+-------------------------------+
46 | ``In`` | |Inserter| | An inserter. |
47 +---------------+-----------------------------------+-------------------------------+
53 For any |Forward Sequence| ``s``, and an |Inserter| ``in``:
57 typedef reverse<s,in>::type r;
67 typedef reverse_copy<s,in>::type r;
81 typedef vector_c<int,9,8,7,6,5,4,3,2,1,0> numbers;
82 typedef reverse< numbers >::type result;
84 BOOST_MPL_ASSERT(( equal< result, range_c<int,0,10> > ));
90 |Transformation Algorithms|, |Reversible Algorithm|, |reverse_copy|, |copy|, |copy_if|
93 .. copyright:: Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams
94 Distributed under the Boost Software License, Version 1.0. (See accompanying
95 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)