Namespaces
Variants
Actions

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

From cppreference.com
 
C++
 
Diagnostics library
 
std::basic_stacktrace
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.

Contents

[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

[edit] See also

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant