Spec-Zone.ru › C++

std::basic_stacktrace<Allocator>::at

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.

Parameters

pos - position of the stacktrace entry to return

Return value

Reference to the requested entry.

Exceptions

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

Complexity

Constant.

Example

See also

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

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/utility/basic_stacktrace/at

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API