B
Barry Ding
As I check sig and Dinkumware STL implementation
Containers like deque ,vector and list
template <class T, class A = allocator<T> >
class XContainer : public XContainer_base<T, A> {
typedef XContainer_base::allocator allocator_type;
};
sgi doesn't rebind, so the XContainer_base::allocator == A (the
template parameter)
Dinkumware do rebind, but still rebind to T type
both equal to A if default
so the question is why trying so hard to do this, why not just
typdef A allocator_type?
Containers like deque ,vector and list
template <class T, class A = allocator<T> >
class XContainer : public XContainer_base<T, A> {
typedef XContainer_base::allocator allocator_type;
};
sgi doesn't rebind, so the XContainer_base::allocator == A (the
template parameter)
Dinkumware do rebind, but still rebind to T type
both equal to A if default
so the question is why trying so hard to do this, why not just
typdef A allocator_type?