| Home | Libraries | People | FAQ | More

##### transform

###### Description

Returns the result type of `transform`, given the types of the input sequence and unary Polymorphic Function Object.

###### Unary version synopsis

    template<
        typename Sequence,
        typename F
        >
    struct transform
    {
        typedef unspecified type;
    };

Table 1.89. Parameters

Parameter | Requirement | Description
--- | --- | ---
`Sequence` | A model of Forward Sequence | Operation's argument
`F` | A model of unary Polymorphic Function Object | Transformation metafunction

###### Expression Semantics

    result_of::transform<Sequence, F>::type

Return type:

- A model of Forward Sequence
- A model of Associative Sequence if `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`.

###### Binary version synopsis

    template<
        typename Sequence1,
        typename Sequence2,
        typename F
        >
    struct transform
    {
          typedef unspecified type;
    };

Table 1.90. Parameters

Parameter | Requirement | Description
--- | --- | ---
`Sequence1` | A model of Forward Sequence | Operation's argument
`Sequence2` | A model of Forward Sequence | Operation's argument
`F` | A model of binary Polymorphic Function Object | Transformation metafunction

###### Expression Semantics

    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.

###### Complexity

Constant.

###### Header

    #include <boost/fusion/algorithm/transformation/transform.hpp>
    #include <boost/fusion/include/transform.hpp>