Y
Hacker News
new
|
ask
|
show
|
jobs
by
pjmlp
1979 days ago
auto ptr = new (std::nothrow) ...... if (ptr != nullptr) { //........ }
Regarding STL, allocators with similar behavior can be provided.