std::basic_stacktrace<Allocator>::operator[] - cppreference.com

From cppreference.com

const_referenceoperator[](size_typepos)const;(since C++23)Returns a reference to the entry at specified location pos. No bounds checking is performed.

If pos<size() is false, the behavior is undefined.

(until C++26)If pos<size() is false:

If the implementation is

hardened

, a

contract violation

occurs.

If the implementation is not hardened, the behavior is undefined.

(since C++26)Parameters

pos - position of the stacktrace entry to return Return value

Reference to the requested entry.

Exceptions

Throws nothing.

Complexity

Constant.

Example

See also

access specified stacktrace entry with bounds checking
(public member function)

[edit]