If I wanted to parameterize the creation of an object, I could, of course, create a function that called new in a particular class and passed a pointer. I am wondering if it is possible to skip this step and pass the function pointer to the operator itself new.
new
boost :: lambda provides function wrappers for newand delete. They can be used to easily transform a call newinto a function object.
delete
operator new ( ) , . void*. , , , . , ; , return.
operator new
void*
return