Proposal for std::vector.

Stephen M. Webb bregma@interlog.com
Fri Feb 6 13:55:00 GMT 2004


On Friday, February 06 2004 07:51, Dhruv Matani wrote:
> The relevant discussion can be found by searching google for:
> About std::vector and standard containers in general.
>
>
> Wierd as it may seem, are standard containers such as std::vector
> allowed
> to derive from std::allocator, or more generally from an allocator
> class?

Some implementations do this.  Vector is the trivial case.  Consider what you 
would do with deque and map.


-- 
Stephen M. Webb
stephen.webb@bregmasoft.com



More information about the Libstdc++ mailing list