Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

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

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

NotebookLM
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

This section is incomplete
Reason: no example

See also

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

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.