new-expression calls op-new — implicitly

op-new is officially a function, and always requires 1 or more arguments.

– new MyType implicitly calls qq/…operator new(sizeof(MyType)) /
– new (2,f) MyType calls qq/..operator new(sizeof(MyType), 2,f) / — Note the (2,f) are placement arguments. See http://en.cppreference.com/w/cpp/language/new

– if arguments come After “MyType”, then they are ctor arguments, like qq/ new int(7) /

Actually,
– new MyType implicitly calls qq/ C::operator new(sizeof(MyType)) / if any, and qq/ ::operator new(sizeof(MyType)) / otherwise

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s