
11 Oct
2004
11 Oct
'04
9:42 a.m.
Howard Hinnant wrote:
On Oct 9, 2004, at 8:46 AM, Dave Harris wrote:
The second is a container of values which may be polymorphic. It would be a more-or-less drop-in replacement for vector<T>. It would not allow nulls, and the syntax would be like v.begin()->method(). Although it would probably use pointers behind the scenes, that would be an implementation detail not revealed by its interface.
I.e. a vector<T&> ?
Right! I'd often miss such a container, because I'd prefer references everywhere, but for vectors I need to use pointers. I supposed that ptr_vector with non-owning policy is exactly like vector<T&>. - Volodya