Boost logo

Boost :

From: scleary_at_[hidden]
Date: 2000-12-04 10:23:46


> [Jeff Garland]
> 4) Running destructors. Another useful feature would be to not run
> destructors when deallocating. For non-resource utilizing objects this is
> an appropriate policy.

The pool<> interface runs destructors. sized_pool is an interface that
doesn't run destructors. Thus:
  sized_pool<sizeof(mytype)> p;
  // or "sized_pool p(sizeof(mytype));" for non-template-pool
should be what you want.

        -Steve


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