std::basic_stacktrace<Allocator>::operator[]

From cppreference.com
 
 
Utilities library
General utilities
Date and time
Function objects
Formatting library (C++20)
(C++11)
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)(C++20)(C++20)   
(C++20)
Swap and type operations
(C++14)
(C++11)

(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)

Elementary string conversions
(C++17)
(C++17)
 
 
 
const_reference operator[]( size_type pos ) const;
(since C++23)

Returns a reference to the entry at specified location pos. No bounds checking is performed.

If pos is not within the range of the stacktrace, i.e. pos >= size(), the behavior is undefined.

Parameters

pos - position of the stacktrace entry to return

Return value

Reference to the requested entry.

Exceptions

Throws nothing.

Complexity

Constant.

Example

See also

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