[ptr_container]Internal use of void* containers

Internally, the ptr_container classes use a void* container to do its magic.
For example, ptr_vector uses a std::vector

On 4/16/07, Bill Buklis
Internally, the ptr_container classes use a void* container to do its magic. ... I'm just curious as to why you didn't use the more obvious (and perhaps wrong) choice of vector
. Note: I'm not suggesting that it be changed.
I think the main reason is to reduce code bloat. Instead of having to
instantiate N vectors for different pointer types , the compiler can
re-use a single instantiation of of vector
participants (2)
-
Bill Buklis
-
Chris Uzdavinis