ATLAS Offline Software
Loading...
Searching...
No Matches
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
23namespace CxxUtils {
24
25
33[[noreturn]]
34void throw_out_of_range (const std::string& what,
35 size_t index, size_t size, const void* obj);
36
37
38
46[[noreturn]]
47void 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
void throw_out_of_range(const std::string &what, size_t index, size_t size, const void *obj)
Throw an out_of_range exception.