Lines Matching full:new

14 #include <new>
26 // Implement all new and delete operators as weak definitions
46 _LIBCPP_MAKE_OVERRIDABLE_FUNCTION_DETECTABLE _LIBCPP_WEAK void* operator new(std::size_t size) _THR… in operator new()
53 _LIBCPP_WEAK void* operator new(size_t size, const std::nothrow_t&) noexcept { in operator new()
57 !std::__is_function_overridden(static_cast<void* (*)(std::size_t)>(&operator new)), in operator new()
58 … "libc++ was configured with exceptions disabled and `operator new(size_t)` has been overridden, " in operator new()
59 "but `operator new(size_t, nothrow_t)` has not been overridden. This is problematic because " in operator new()
60 …"`operator new(size_t, nothrow_t)` must call `operator new(size_t)`, which will terminate in case " in operator new()
61 … "it fails to allocate, making it impossible for `operator new(size_t, nothrow_t)` to fulfill its " in operator new()
63 "`operator new(size_t, nothrow_t)` as well."); in operator new()
70 p = ::operator new(size); in operator new()
77 _LIBCPP_MAKE_OVERRIDABLE_FUNCTION_DETECTABLE _LIBCPP_WEAK void* operator new[](size_t size) _THROW_… in operator new[]()
78 return ::operator new(size); in operator new[]()
81 _LIBCPP_WEAK void* operator new[](size_t size, const std::nothrow_t&) noexcept { in operator new[]()
85 !std::__is_function_overridden(static_cast<void* (*)(std::size_t)>(&operator new[])), in operator new[]()
86 …"libc++ was configured with exceptions disabled and `operator new[](size_t)` has been overridden, " in operator new[]()
87 … "but `operator new[](size_t, nothrow_t)` has not been overridden. This is problematic because " in operator new[]()
88 …"`operator new[](size_t, nothrow_t)` must call `operator new[](size_t)`, which will terminate in c… in operator new[]()
89 …"it fails to allocate, making it impossible for `operator new[](size_t, nothrow_t)` to fulfill its… in operator new[]()
91 "`operator new[](size_t, nothrow_t)` as well."); in operator new[]()
98 p = ::operator new[](size); in operator new[]()
140 operator new(std::size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC { in operator new()
147 _LIBCPP_WEAK void* operator new(size_t size, std::align_val_t alignment, const std::nothrow_t&) noe… in operator new()
151 …td::__is_function_overridden(static_cast<void* (*)(std::size_t, std::align_val_t)>(&operator new)), in operator new()
152 …"libc++ was configured with exceptions disabled and `operator new(size_t, align_val_t)` has been o… in operator new()
153 …"but `operator new(size_t, align_val_t, nothrow_t)` has not been overridden. This is problematic b… in operator new()
154 …"`operator new(size_t, align_val_t, nothrow_t)` must call `operator new(size_t, align_val_t)`, whi… in operator new()
155 …"terminate in case it fails to allocate, making it impossible for `operator new(size_t, align_val_… in operator new()
157 "`operator new(size_t, align_val_t, nothrow_t)` as well."); in operator new()
164 p = ::operator new(size, alignment); in operator new()
172 operator new[](size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC { in operator new[]()
173 return ::operator new(size, alignment); in operator new[]()
176 _LIBCPP_WEAK void* operator new[](size_t size, std::align_val_t alignment, const std::nothrow_t&) n… in operator new[]()
180 …::__is_function_overridden(static_cast<void* (*)(std::size_t, std::align_val_t)>(&operator new[])), in operator new[]()
181 …"libc++ was configured with exceptions disabled and `operator new[](size_t, align_val_t)` has been… in operator new[]()
182 …"but `operator new[](size_t, align_val_t, nothrow_t)` has not been overridden. This is problematic… in operator new[]()
183 …"`operator new[](size_t, align_val_t, nothrow_t)` must call `operator new[](size_t, align_val_t)`,… in operator new[]()
184 …"terminate in case it fails to allocate, making it impossible for `operator new[](size_t, align_va… in operator new[]()
187 "`operator new[](size_t, align_val_t, nothrow_t)` as well."); in operator new[]()
194 p = ::operator new[](size, alignment); in operator new[]()