468,783 Members | 1,581 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,783 developers. It's quick & easy.

operator delete(void *ptr, size_t size)


Hello all,

What is an example of a circumstance where it would be useful to overload
the form of operator delete with the second parameter (of type size_t)?
i.e.:

void operator delete(void *ptr, size_t size);

Thanks,
Dave
Jul 19 '05 #1
1 3701
"Dave" <be***********@yahoo.com> wrote in message
news:vp************@news.supernews.com...
[...]
What is an example of a circumstance where it would be
useful to overload the form of operator delete with the
second parameter (of type size_t)?
i.e.:

void operator delete(void *ptr, size_t size);


If you were keeping lists of blocks ordered by size. This
could speed up finding the block to be deleted.

Dave

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.521 / Virus Database: 319 - Release Date: 9/23/2003
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

24 posts views Thread by Marcin Vorbrodt | last post: by
2 posts views Thread by Jakob Bieling | last post: by
6 posts views Thread by qazmlp1209 | last post: by
7 posts views Thread by subramanian100in | last post: by
1 post views Thread by CARIGAR | last post: by
2 posts views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.