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

Function operator new

test/any_io_executor.cpp:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 8

allocateMethod · 0.70
allocateMethod · 0.70
allocateMethod · 0.70
allocateMethod · 0.70
allocateMethod · 0.70
allocateMethod · 0.70
allocateMethod · 0.50
allocateMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected