| Topic: |
DEVELOP > c-Plus-Plus |
| User: |
"Dave" |
| Date: |
19 Oct 2003 10:29:27 PM |
| Object: |
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
.
|
|
| User: "David B. Held" |
|
| Title: Re: operator delete(void *ptr, size_t size) |
19 Oct 2003 10:47:48 PM |
|
|
"Dave" <better_cs_now@yahoo.com> wrote in message
news:vp6lkk1neksk2d@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
.
|
|
|
|

|
Related Articles |
|
|