1 .. Algorithms/Transformation Algorithms//reverse_copy |110
13 , typename In = |unspecified|
17 typedef |unspecified| type;
24 Returns a reversed copy of the original sequence.
26 |transformation algorithm disclaimer|
34 #include <boost/mpl/copy.hpp>
40 |Reversible Algorithm|
46 +---------------+-----------------------------------+-------------------------------+
47 | Parameter | Requirement | Description |
48 +===============+===================================+===============================+
49 | ``Sequence`` | |Forward Sequence| | A sequence to copy. |
50 +---------------+-----------------------------------+-------------------------------+
51 | ``In`` | |Inserter| | An inserter. |
52 +---------------+-----------------------------------+-------------------------------+
58 |Semantics disclaimer...| |Reversible Algorithm|.
60 For any |Forward Sequence| ``s``, and an |Inserter| ``in``:
64 typedef reverse_copy<s,in>::type r;
74 typedef reverse_fold< s,in::state,in::operation >::type r;
81 Linear. Exactly ``size<s>::value`` applications of ``in::operation``.
89 typedef list_c<int,10,11,12,13,14,15,16,17,18,19>::type numbers;
92 , front_inserter< numbers >
95 BOOST_MPL_ASSERT_RELATION( size<result>::value, ==, 20 );
96 BOOST_MPL_ASSERT(( equal< result,range_c<int,0,20> > ));
102 |Transformation Algorithms|, |Reversible Algorithm|, |copy|, |reverse_copy_if|, |reverse_transform|
105 .. copyright:: Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams
106 Distributed under the Boost Software License, Version 1.0. (See accompanying
107 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)