std::basic_stacktrace<Allocator>::operator[]
From cppreference.com
< cpp | utility | basic stacktrace
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Diagnostics library
(until C++20*)
(C++17)(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Exception handling failures
(C++11)
(until C++17*)
(until C++17*)
(until C++17*)
(until C++17*)
(TM TS)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++23)
(C++23)
(C++26)
(C++26)
(C++26)
std::basic_stacktrace
basic_stacktrace::operator[]
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.
[edit] Parameters
pos
-
position of the stacktrace entry to return
[edit] Return value
Reference to the requested entry.
[edit] Exceptions
Throws nothing.
[edit] Complexity
Constant.
[edit] Example
This section is incomplete
Reason: no example
Reason: no example