
16 Feb
2005
16 Feb
'05
11:10 p.m.
Jonathan Turkanis wrote:
I suggested you follow policy_ptr and use mpl metafunction classes as policy template parameters. See, for instance, the array storage policy: http://tinyurl.com/6tbhu.
It looks like this:
template <typename T> class array_storage_ { ... };
struct array_storage { typedef storage_policy_tag policy_category;
template <typename T> struct apply { typedef array_storage_<T> type; }; };
Jonathan
is this essentially the equivalent of the standard allocator's rebind? -Jason