
10 Mar
2011
10 Mar
'11
1:49 p.m.
On Wed, 09 Mar 2011 11:47:00 -0800 Steven Watanabe <watanabesj@gmail.com> wrote:
I'm not sure I understand your argument. Are you saying that because there are no standard containers with a zero-memory-before-releasing option, that the library shouldn't provide one either?
Yes. Why integer_t should be an exception?
Just a thought: Maybe the Allocator should handle this, since it's related to memory management?
I've been debating that since I read your message last night, and I don't have an answer. It would make sense, but it would also make it more difficult for someone who just wants to clear the memory when it's released. I can see uses where that would be sufficient. -- Chad Nelson Oak Circle Software, Inc. * * *