Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
transform
Description

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

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

Table 1.75. Parameters

Parameter

Requirement

Description

Sequence

A model of Forward Sequence

Operation's argument

F

A model of unary Polymorphic Function Object

Transformation function object

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

Return type: A model of Forward Sequence.

Semantics: Returns a sequence with values F::result<E>::type for each element type E in Sequence.

Complexity

Constant.

Header
#include <boost/fusion/algorithm/transformation/transform.hpp>
Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias Schwinger

PrevUpHomeNext