Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2000-09-19 08:59:12


----- Original Message -----
From: "John Maddock" <John_Maddock_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, September 19, 2000 6:48 AM
Subject: Re: [boost] regex design question

>
> >The benefit of an allocator (improved speed and/or memory control)
applies
>
> >only when memory allocation is a significant factor in the class's
> >performance, and the class is performance critical in terms of
> >applications.
>
> That is in fact the case - allocation here is critical, but it's also
> rather non-typical, and is dependent upon the regex internals (stuff the
> user should not know about).

Can't you just have the default allocator be your own, rather than
allocator<T>?
Is there some deeper problem here?
Is it that you don't want to expose the interface a custom allocator would
neeed in order to be fast enough?

-Dave


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