operator delete(void *ptr, size_t size)



 DEVELOP > c-Plus-Plus > operator delete(void *ptr, size_t size)

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
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
.


  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER