|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Iterators | ||||
| Capacity | ||||
| Element access | ||||
basic_stacktrace::operator[] | ||||
| Modifiers | ||||
| Non-member functions | ||||
| Helper classes | ||||
const_reference operator[]( size_type pos)const; | (since C++23) | |
Returns a reference to the entry at specified locationpos. No bounds checking is performed.
Ifpos is not within the range of the stacktrace, i.e.pos>= size(), the behavior is undefined.
Contents |
| pos | - | position of the stacktrace entry to return |
Reference to the requested entry.
Throws nothing.
Constant.
| This section is incomplete Reason: no example |
| access specified stacktrace entry with bounds checking (public member function)[edit] |