On 06/16/2012 03:07 AM, d coder wrote:
Greetings

Is emplace/clear  mechanism mature enough to be used to create freelists?

I looked but found very scanty documentation on emplace/clear on
dlang.org <http://dlang.org>.

Regards
- Puneet


I create most of my objects with emplace and have not experienced any trouble.

Make sure to keep your allocations aligned, though (16 bytes are sufficient)

http://d.puremagic.com/issues/show_bug.cgi?id=6635

Reply via email to