21 if(elems == 0 || elem_size == 0) {
28 throw std::bad_alloc();
31#if defined(BOTAN_HAS_LOCKING_ALLOCATOR)
37#if defined(BOTAN_TARGET_OS_HAS_ALLOC_CONCEAL)
38 void* ptr = ::calloc_conceal(elems, elem_size);
40 void* ptr = std::calloc(elems, elem_size);
43 [[unlikely]]
throw std::bad_alloc();