MyVector
myexceptions.h
Go to the documentation of this file.
1 #pragma once
2 
10 [[ noreturn ]] void my_new_handler(void);
11 
15 class OutOfRange {
16 public:
22  OutOfRange(const long long int &i, const long long int &l); // Konstruktor
23 
28  const long long int &Index() const
29  {
30  return index;
31  }
32 
37  const long long int &Interval_End() const
38  {
39  return end_interval;
40  }
41 
42 private:
43  long long int index;
44  long long int end_interval;
45 };
46 
47 
48 
const long long int & Index() const
Allows the access to the index.
Definition: myexceptions.h:28
const long long int & Interval_End() const
Allows the access to the array length.
Definition: myexceptions.h:37
OutOfRange(const long long int &i, const long long int &l)
Constructor that has to be used with "throw".
void my_new_handler(void)
Definition: myexceptions.cpp:7