Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-10-11 04:42:27

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

Boost list run by bdawes at, gregod at, cpdaniel at, john at