$ errors.fyi/cpp/std--bad_alloc 74 namespaces · 3,092 codes
cpp · cpp/std--bad_alloc
std--bad_alloc

std::bad_alloc

Thrown by operator new and operator new[] when memory allocation fails. Can be avoided by using the nothrow variant: new(std::nothrow) T, which returns nullptr on failure instead.

References

In this namespace

— start of namespace —
» community-maintained · contribute on GitHub npm i -g errors-fyi && errorfyi ENOENT