1 2 3 4 5 6 7 8 9
Foo* foo = new Foo(a,v); Foo* foo = new(ptr,std::nothrow)Foo[]; Foo* foo = new(ptr)Foo(); Foo* foo = new(FOO(ptr))Foo(); Foo* foo = new ( ptr,std::nothrow ) Foo[]; Foo* foo = new ( ptr ) Foo(); Foo* foo = new ( FOO(ptr) ) Foo();