In my case, which is admittedly very specific, I am using the ObjecStore C++ OO database. It uses a persistent new to allocate objects in the database, so requires a custom allocator be passed to any STL vectors/lists.<br>
<br>I have another suggestion , which comes from LEDA. When an node ( for example) is deleted from the graph Lemon notifies the observers ( such as the maps) after the arcs have been deleted, but before the node is deleted from the graph. Is is useful to be notified both pre AND post deletion of a graph object.<br>
<br><br><div class="gmail_quote">On Wed, Jun 29, 2011 at 4:14 AM, Alpár Jüttner <span dir="ltr"><<a href="mailto:alpar@cs.elte.hu">alpar@cs.elte.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<div class="im"><br>
> A suggestion. It would be very useful to be able to pass/define custom<br>
> STL allocators for the underlying STL types used (vector etc)<br>
<br>
</div>Technically, it would be of course possible, but it would make the<br>
interfaces more complex (one more template parameter and one more<br>
constructor parameter).<br>
<br>
On the other hand, the tools in LEMON designed in a way that memory<br>
allocation shouldn't be a bottleneck in most use-cases. I.e. complex<br>
data structures are hand-optimized to allocate big chunks of memory<br>
blocks instead of depending on the speed (and caching efficiency) of a<br>
general purpose memory pool.<br>
<br>
But, if you know a real use case for using custom STL allocator in<br>
LEMON, don't hesitate to let us know.<br>
<br>
Regards,<br>
Alpár<br>
<br>
P.S.: Thank you for the kind words in your previous mail.<br>
<br>
<br>
<br>
> _______________________________________________<br>
> Lemon-user mailing list<br>
> <a href="mailto:Lemon-user@lemon.cs.elte.hu">Lemon-user@lemon.cs.elte.hu</a><br>
> <a href="http://lemon.cs.elte.hu/mailman/listinfo/lemon-user" target="_blank">http://lemon.cs.elte.hu/mailman/listinfo/lemon-user</a><br>
<br>
<br>
</blockquote></div><br>