Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2017. The current version is 1.89.0.
Returns the result type of transform, given the types of
the input sequence and unary Polymorphic
Function Object.
template< typename Sequence, typename F > struct transform { typedef unspecified type; };
Table 1.89. Parameters
|
Parameter |
Requirement |
Description |
|---|---|---|
|
|
A model of Forward Sequence |
Operation's argument |
|
|
A model of unary Polymorphic Function Object |
Transformation metafunction |
result_of::transform<Sequence, F>::type
Return type:
Sequence
implements the Associative
Sequence model.
Semantics: Returns a sequence that contains
the types of __result_of__<F(E)>::type
for each element E within
Sequence.
template< typename Sequence1, typename Sequence2, typename F > struct transform { typedef unspecified type; };
Table 1.90. Parameters
|
Parameter |
Requirement |
Description |
|---|---|---|
|
|
A model of Forward Sequence |
Operation's argument |
|
|
A model of Forward Sequence |
Operation's argument |
|
|
A model of binary Polymorphic Function Object |
Transformation metafunction |
result_of::transform<Sequence1, Sequence2, F>::type
Return type: A model of Forward Sequence.
Semantics: Returns a sequence, that
contains the types of __result_of__<F(E1, E2)>::type
for each pair of elements E1
and E2 within Sequence1 and Sequence2
respectively.
Constant.
#include <boost/fusion/algorithm/transformation/transform.hpp> #include <boost/fusion/include/transform.hpp>