Namespaces
Variants
Views
Actions

std::basic_stacktrace<Allocator>::at

From cppreference.com
 
 
Utilities library
General utilities
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)
Stacktrace
 
 
const_reference at( size_type pos ) const;
(since C++23)

Returns a reference to the entry at specified location pos, with bounds checking.

If pos is not within the range of the stacktrace, an exception of type std::out_of_range is thrown.

Contents

[edit] Parameters

pos - position of the stacktrace entry to return

[edit] Return value

Reference to the requested entry.

[edit] Exceptions

std::out_of_range if pos >= size().

[edit] Complexity

Constant.

[edit] Example

[edit] See also

access specified stacktrace entry
(public member function) [edit]