"Adi Shavit" <adish@gentech.co.il> wrote in message news:evbm3f$2v8o$1@digitalmars.com...For what it's worth, Boost's shared_ptr defines these typedefs:
Apparently scoped_ptr, static_move_ptr and others define element_type too.template<class T> class shared_ptr { //... public: typedef T element_type; typedef T value_type; typedef T * pointer; //...
Loki's SmartPtr defines the following (policy defined) typedefs: StoredType, InitPointerType, PointerType, ReferenceType
But, perhaps you should post this question to one of the comp.lang.c++.* groups.
I did. Just didn't get much in the way of interest.No matter, I've decided on resource_type and const_resource_type (with thelatter being optional, and inferrable from resource_type).