Boost logo

Boost :

From: Zhang, Karl (kzzhang_at_[hidden])
Date: 2005-02-23 18:56:07


Hi:

When I am reading mpl source code. I notice that push_bck algorithm, Look as following:
template<>
struct push_back_traits< aux::vector_tag >
{
    template< typename Vector, typename T > struct algorithm
    {
        typedef vector_node<T,Vector> type;
    };
};

My question is: when generate new sequence, vactor_node<T, vector>, why skip "size" argument ?
How does it increase sequence size in push_back?

About push_front, It increase sequence size when generating new sequence.

Regard

Karl


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk