y3c-stl 0.4.0
Friendly C++ STL wrapper with automatic stacktrace
Loading...
Searching...
No Matches
out_of_range Class Referencefinal

#include <y3c/terminate.h>

Inheritance diagram for out_of_range:
[legend]
Collaboration diagram for out_of_range:
[legend]

Public Member Functions

 out_of_range (std::string func, std::size_t size, std::ptrdiff_t index, internal::skip_trace_tag={})
 
const char * what () const noexcept override
 

Static Public Attributes

static std::atomic< int > last_exception_id
 
static std::unordered_map< int, terminate_detail > exceptions
 

Protected Attributes

std::string what
 

Detailed Description

std:: のexceptionをそれぞれ継承しており、 y3c:: の各exceptionの間に継承関係はない

ユーザーがcatchするのは std:: のほうで、 y3c:: のクラスのまま直接catchすることは想定していない (catchできるけど...)

Examples
array-at.cc, and vector-at.cc.

Constructor & Destructor Documentation

◆ out_of_range()

out_of_range ( std::string  func,
std::size_t  size,
std::ptrdiff_t  index,
internal::skip_trace_tag  = {} 
)
inline

Member Function Documentation

◆ what()

const char * what ( ) const
inlineoverridenoexcept

Member Data Documentation

◆ exceptions

std::unordered_map< int, terminate_detail > exceptions
staticinherited

◆ last_exception_id

std::atomic< int > last_exception_id
staticinherited

◆ what

std::string what
protectedinherited

The documentation for this class was generated from the following file: