Go to the source code of this file.
|
new_handler | std::get_new_handler () noexcept |
|
void | operator delete (void *) noexcept __attribute__((__externally_visible__)) |
|
void | operator delete (void *, const std::nothrow_t &) noexcept __attribute__((__externally_visible__)) |
|
void | operator delete (void *, void *) noexcept |
|
void | operator delete[] (void *) noexcept __attribute__((__externally_visible__)) |
|
void | operator delete[] (void *, const std::nothrow_t &) noexcept __attribute__((__externally_visible__)) |
|
void | operator delete[] (void *, void *) noexcept |
|
_GLIBCXX_NODISCARD void * | operator new (std::size_t) __attribute__((__externally_visible__)) |
|
_GLIBCXX_NODISCARD void * | operator new (std::size_t, const std::nothrow_t &) noexcept __attribute__((__externally_visible__ |
|
_GLIBCXX_NODISCARD void * | operator new (std::size_t, void *__p) noexcept |
|
_GLIBCXX_NODISCARD void * | operator new[] (std::size_t) __attribute__((__externally_visible__)) |
|
_GLIBCXX_NODISCARD void * | operator new[] (std::size_t, const std::nothrow_t &) noexcept __attribute__((__externally_visible__ |
|
_GLIBCXX_NODISCARD void * | operator new[] (std::size_t, void *__p) noexcept |
|
new_handler | std::set_new_handler (new_handler) throw () |
|
|
_GLIBCXX_NODISCARD void | __malloc__ |
|
const nothrow_t | std::nothrow |
|
This is a Standard C++ Library header.
The header new
defines several functions to manage dynamic memory and handling memory allocation errors; see http://gcc.gnu.org/onlinedocs/libstdc++/18_support/howto.html#4 for more.
Definition in file new.
◆ _NEW
Definition at line 35 of file new.
◆ operator delete()
void operator delete |
( |
void * |
, |
|
|
void * |
|
|
) |
| |
|
inlinenoexcept |
Definition at line 179 of file new.
◆ operator delete[]()
void operator delete[] |
( |
void * |
, |
|
|
void * |
|
|
) |
| |
|
inlinenoexcept |
Definition at line 180 of file new.
◆ operator new() [1/2]
_GLIBCXX_NODISCARD void * operator new |
( |
std::size_t |
| ) |
|
These are replaceable signatures:
- normal single new and delete (no arguments, throw
bad_alloc
on error)
- normal array new and delete (same)
nothrow
single new and delete (take a nothrow
argument, return NULL
on error)
nothrow
array new and delete (same)
Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program.
◆ operator new() [2/2]
_GLIBCXX_NODISCARD void * operator new |
( |
std::size_t |
, |
|
|
void * |
__p |
|
) |
| |
|
inlinenoexcept |
Definition at line 173 of file new.
◆ operator new[]()
_GLIBCXX_NODISCARD void * operator new[] |
( |
std::size_t |
, |
|
|
void * |
__p |
|
) |
| |
|
inlinenoexcept |
Definition at line 175 of file new.
◆ __malloc__
_GLIBCXX_NODISCARD void __malloc__ |
Definition at line 140 of file new.