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

Function checked_calloc

library/src/trans_table/trans_table_s.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace
26{
27auto checked_calloc(const size_t count, const size_t size) -> void*
28{
29 if (void* ptr = std::calloc(count, size))
30 return ptr;
31 throw std::bad_alloc();
32}
33}
34
35// Accessor for a lazily initialized, immutable TTlowestRank table.

Callers 1

make_ttMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected