| Home | Libraries | People | FAQ | More

##### push_front

###### Description

Returns the result type of `push_front`, given the types of the input sequence and element to push.

###### Synopsis

    template<
        typename Sequence,
        typename T
        >
    struct push_front
    {
        typedef unspecified type;
    };

Table 1.100. Parameters

Parameter | Requirement | Description
--- | --- | ---
`Sequence` | A model of Forward Sequence | Operation's argument
`T` | Any type | Operation's argument

###### Expression Semantics

    result_of::push_front<Sequence, T>::type

Return type:

- A model of Forward Sequence.
- A model of Associative Sequence if `Sequence` implements the Associative Sequence model.

Semantics: Returns a sequence with the elements of `Sequence` and an element of type `T` added to the beginning.

###### Complexity

Constant.

###### Header

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