std::basic_stacktrace<Allocator>::at

出自cppreference.com
 
 
 
 
const_reference at( size_type pos ) const;
(C++23 起)

返回到位於指定位置 pos 的條目的引用,進行邊界檢查。

pos 不在棧蹤跡的範圍內,則拋出 std::out_of_range 類型的異常。

目錄

[編輯] 參數

pos - 要返回的棧蹤條目的位置

[編輯] 返回值

到請求的條目的引用。

[編輯] 異常

pos >= size() 則為 std::out_of_range

[編輯] 複雜度

常數。

[編輯] 示例

[編輯] 參閱

訪問指定的棧蹤跡條目
(公開成員函數) [編輯]