Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
xmalloc.cxx
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration.
3  */
12 #include "CxxUtils/xmalloc.h"
13 #include <malloc.h>
14 #include <new>
15 
16 
17 
18 namespace CxxUtils {
19 
20 
31 void* xmalloc (size_t size)
32 {
33  void* p = malloc (size);
34  if (!p) throw std::bad_alloc();
35  return p;
36 }
37 
38 
39 
40 } // namespace CxxUtils
41 
42 
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
CxxUtils
Definition: aligned_vector.h:29
TrigInDetValidation_Base.malloc
malloc
Definition: TrigInDetValidation_Base.py:132
CxxUtils::xmalloc
void * xmalloc(size_t size)
Trapping version of malloc.
Definition: xmalloc.cxx:31
xmalloc.h
Trapping version of malloc.