Boost logo

Boost :

From: Jason Hise (chaos_at_[hidden])
Date: 2005-02-16 18:10:23


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk