MCPcopy Create free account
hub / github.com/boostorg/asio / operator new

Function operator new

test/execution/any_executor.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27static bool next_nothrow_new_fails = false;
28
29void* operator new(std::size_t n,
30 const std::nothrow_t&) noexcept
31{
32 if (next_nothrow_new_fails)
33 {
34 next_nothrow_new_fails = false;
35 return 0;
36 }
37 return ::operator new(n);
38}
39
40struct fat_executor
41{

Callers 1

allocateMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected