...one of the most highly
regarded and expertly designed C++ library projects in the
world. — Herb Sutter and Andrei
Returns a new sequence with an element added at the beginning.
template< typename Sequence, typename T > typename
result_of::push_front<Sequence const, T>::type push_front( Sequence const& seq, T const& t);
Table 1.85. Parameters
A model of Forward Sequence
The value to add to the beginning
Semantics: Returns a new sequence, containing
all the elements of
and new element
to the beginning. The elements are in the same order as they were in
Constant. Returns a view which is lazily evaluated.
#include <boost/fusion/algorithm/transformation/push_front.hpp> #include <boost/fusion/include/push_front.hpp>