MCPcopy Create free account
hub / github.com/dds-bridge/dds / checked_malloc

Function checked_malloc

library/src/trans_table/trans_table_l.cpp:94–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92namespace
93{
94auto checked_malloc(const size_t size) -> void*
95{
96 if (void* ptr = std::malloc(size))
97 return ptr;
98 throw std::bad_alloc();
99}
100
101auto checked_calloc(const size_t count, const size_t size) -> void*
102{

Callers 2

make_ttMethod · 0.85
get_next_card_blockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected