From: Andrei Alexandrescu (andrewalex_at_[hidden])
Date: 2002-04-19 16:46:09


"Peter Dimov" <pdimov_at_[hidden]> wrote in message
news:015b01c1e797$ba86d100$1d00a8c0_at_pdimov2...
> Seriously, we shouldn't design to beliefs. You must have acquired some
> experience with SmartPtr by now that answers the question. IOW does
anybody
> use a pointer type different from value_type*? And if so, is "SmartPtr"
the
> appropriate name of the class?

PointerType is defined to let the user use a secondary (recursive) smart
pointer inside the Storage policy. That secondary smart pointer might, for
example, perform locking and unlocking.

I haven't personally used that feature, but I do think it is useful. Maybe
Gennady could chime in.

I think SmartPtr is the appropriate name because the vast majority of uses
are just that.

Andrei