ATLAS Offline Software
Control
CxxUtils
Root
throw_out_of_range.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/throw_out_of_range.h
"
13
#include <format>
14
#include <stdexcept>
15
16
17
namespace
CxxUtils
{
18
19
27
void
throw_out_of_range
(
const
std::string&
what
,
28
size_t
index
,
size_t
size
,
const
void
*
obj
)
29
{
30
throw
std::out_of_range (
std::format
31
(
"CxxUtils::throw_out_of_range {} requested index {} >= {} for object at {}"
,
32
what
,
index
,
size
,
obj
));
33
};
34
35
43
void
throw_out_of_range
(
const
char
*
what
,
44
size_t
index
,
size_t
size
,
const
void
*
obj
)
45
{
46
throw_out_of_range
(std::string(
what
),
index
,
size
,
obj
);
47
}
48
49
50
}
// namespace CxxUtils
vtune_athena.format
format
Definition:
vtune_athena.py:14
index
Definition:
index.py:1
python.setupRTTAlg.size
int size
Definition:
setupRTTAlg.py:39
CxxUtils::throw_out_of_range
void throw_out_of_range(const std::string &what, size_t index, size_t size, const void *obj)
Throw an out_of_range exception.
Definition:
throw_out_of_range.cxx:27
throw_out_of_range.h
Helpers for throwing out_of_range exceptions.
CxxUtils
Definition:
aligned_vector.h:29
python.ExitCodes.what
def what(code)
Definition:
ExitCodes.py:73
python.PyAthena.obj
obj
Definition:
PyAthena.py:132
Generated on Fri Oct 24 2025 21:20:09 for ATLAS Offline Software by
1.8.18