65,185
社区成员




void * operator new(size_t, void *location)
{
return location;
}
class Widget
{
public:
Widget(int widgetSize);
...
};
Widget * constructWidgetInBuffer(void *buffer,int widgetSize)
{
return new (buffer) Widget(widgetSize);
}