.working ======= <<<<<<< .working >>>>>>> .merge-right.r57125 ======= >>>>>>> .merge-right.r58299
![]() |
Home | Libraries | People | FAQ | More |
Returns a new sequence with an element added at the end.
template< typename Sequence, typename T > typename result_of::push_back<Sequence, T>::type push_back( Sequence const& seq, T const& t);
Table 1.71. Parameters
Parameter |
Requirement |
Description |
|---|---|---|
seq |
A model of Forward Sequence |
Operation's argument |
t |
Any type |
The value to add to the end |
push_back(seq, t);
<<<<<<< .working Return type: A model of Forward Sequence. ======= Return type: >>>>>>> .merge-right.r57242
seq
implements the Associative
Sequence model.
Semantics: Returns a new sequence, containing all the elements of seq, and new element t appended to the end. The elements are in the same order as they were in seq.
Constant. Returns a view which is lazily evaluated.
#include <boost/fusion/algorithm/transformation/push_back.hpp> #include <boost/fusion/include/push_back.hpp>
assert(push_back(make_vector(1,2,3),4) == make_vector(1,2,3,4));