Ch05-C++ 之 keyword

Ch05-C++ 之 keyword

April 23, 2022
C++ | Basic
c++

newdelete

1. new #

分类 说明
plain new void* operator new(std::size_t) throw(std::bad_alloc);
no_throw new void * operator new(std::size_t, const std::nothrow_t&) throw();
placement new void* operator new(size_t, void*);
plain new[]

2. delete #

分类 说明
plain delete
no_throw delete
placement delete
plain delete[]