3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/reverse-transform.html
| Prev Next | Back Along | Up Home | Full TOC | Front Page / Algorithms / Transformation Algorithms / reverse_transform |
template<
typename Seq
, typename Op
, typename In =_unspecified_>
struct[reverse\_transform](./reverse-transform.html){
typedef_unspecified_type;
};
template<
typename Seq1
, typename Seq2
, typename BinaryOp
, typename In =_unspecified_>
struct[reverse\_transform](./reverse-transform.html){
typedef_unspecified_type;
};
reverse_transform is an overloaded name:
[Note: This wording applies to a no-inserter version(s) of the algorithm. See the Expression semantics subsection for a precise specification of the algorithm's details in all cases — end note]
#include <[boost/mpl/transform.hpp](../../../../boost/mpl/transform.hpp)>
| Parameter | Requirement | Description |
|---|---|---|
| Sequence, Seq1, Seq2 | Forward Sequence | Sequences to transform. |
| Op, BinaryOp | Lambda Expression | A transformation. |
| In | Inserter | An inserter. |
The semantics of an expression are defined only where they differ from, or are not defined in Reversible Algorithm.
For any Forward Sequences s, s1 and s2, Lambda Expressions op and op2, and an Inserter in:
typedef[reverse\_transform](./reverse-transform.html)<s,op,in>::type r;
| Return type: |
A type.
| | Postcondition: |
Equivalent to
typedef[lambda](./lambda.html)<op>::type f;
typedef[lambda](./lambda.html)<in::operation>::type in_op;
typedef[reverse\_fold](./reverse-fold.html)<
s
, in::state
,[bind](./bind.html)< in_op,[\_1](./placeholders.html),[bind](./bind.html)<f,[\_2](./placeholders.html)> >
>::type r;
|
typedef[transform](./transform.html)<s1,s2,op,in>::type r;
| Return type: |
A type.
| | Postcondition: |
Equivalent to
typedef[lambda](./lambda.html)<op2>::type f;
typedef[lambda](./lambda.html)<in::operation>::type in_op;
typedef[reverse\_fold](./reverse-fold.html)<
pair_view<s1,s2>
, in::state
,[bind](./bind.html)<
in_op
,[\_1](./placeholders.html),[bind](./bind.html)<f,[bind](./bind.html)<first<>,[\_2](./placeholders.html)>,[bind](./bind.html)<second<>,[\_2](./placeholders.html)> >
>
>::type r;
|
Linear. Exactly size<s>::value / size<s1>::value applications of op / op2 and in::operation.
typedef[vector](./vector.html)<char,short,int,long,float,double> types;
typedef[vector](./vector.html)<double*,float*,long*,int*,short*,char*> pointers;
typedef[reverse\_transform](./reverse-transform.html)< types,boost::add_pointer<[\_1](./placeholders.html)> >::type result;[BOOST\_MPL\_ASSERT](./assert.html)(([equal](./equal.html)<result,pointers> ));
Transformation Algorithms, Reversible Algorithm, transform, reverse_copy, replace_if
| Prev Next | Back Along | Up Home | Full TOC |
Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |