The keywordnew creates an object inC++ and derived languages.
newup (third-person singular simple presentnews up,present participlenewing up,simple past and past participlenewed up)
- (programming, informal, transitive) To create (anobject) by calling itsconstructor.
- Synonym:new
2000, Robert C. Martin,More C++ gems:If an exception occurs trying tonew up bar1 or bar2, the TFoo part of the object won't have changed[…]
2003, Jonathan Hoyle, “Pointers?”, incomp.lang.basic.realbasic (Usenet):So you justnew up the object you want and once its internal reference count drops to 0, the language deletes it (during a free time as a background thread).