ATLAS Offline Software
Loading...
Searching...
No Matches
Control
CxxUtils
CxxUtils
throw_out_of_range.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
/*
3
* Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration.
4
*/
13
14
15
#ifndef CXXUTILS_THROW_OUT_OF_RANGE_H
16
#define CXXUTILS_THROW_OUT_OF_RANGE_H
17
18
19
#include <string>
20
#include <cstdlib>
21
22
23
namespace
CxxUtils
{
24
25
33
[[noreturn]]
34
void
throw_out_of_range
(
const
std::string& what,
35
size_t
index,
size_t
size,
const
void
* obj);
36
37
38
46
[[noreturn]]
47
void
throw_out_of_range
(
const
char
* what,
48
size_t
index,
size_t
size,
const
void
* obj);
49
50
51
}
// namespace CxxUtils
52
53
54
#endif
// not CXXUTILS_THROW_OUT_OF_RANGE_H
CxxUtils
Definition
aligned_vector.h:29
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
Generated on
for ATLAS Offline Software by
1.14.0