21 if(elems == 0 || elem_size == 0) {
27 throw std::bad_alloc();
30#if defined(BOTAN_HAS_LOCKING_ALLOCATOR)
36#if defined(BOTAN_TARGET_OS_HAS_ALLOC_CONCEAL)
37 void* ptr = ::calloc_conceal(elems, elem_size);
39 void* ptr = std::calloc(elems, elem_size);
42 [[unlikely]]
throw std::bad_alloc();