Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > is it placement new?

Reply
Thread Tools

is it placement new?

 
 
Wenjie
Guest
Posts: n/a
 
      06-26-2003
Hello,


I read that the placement new looks like:
void* SomeClass:perator new(size_t, void* location)
{
return location;
}

If for some reason, I overload the operator new as:
void* SomeClass:perator new(size_t, unsigned int locationIndex)
{
//...
}
Am I defining another placement new? Or what to call it,
"my overloaded operator new"?

BTW, should I #include <new> for my overloaded operator new?
I didn't but it compiles (on VC++6.0).


Thanks and best regards,
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN 3000 and PIX placement w/InternetRouter william Cisco 3 05-12-2005 05:40 PM
Default Cursor Placement Bob Firefox 2 02-25-2005 05:17 AM
firewall placement and choice of firewalls Joe Dewberry Cisco 0 12-09-2003 05:39 PM
Global Catalog Placement? hAeW MCSE 4 10-02-2003 08:03 AM
Relative placement constraints in VHDL for Virtex multipliers Jack Stone VHDL 1 07-25-2003 08:12 PM



Advertisments