std::stacktrace_entry::operator bool
來自 cppreference.com
constexpr explicit operator bool() const noexcept; |
(C++23 起) | |
檢查 stacktrace_entry
是否非空,即它是否表示堆疊跟蹤中的一個求值。
目錄 |
[編輯] 引數
(無)
[編輯] 返回值
true 如果 stacktrace_entry
非空,否則為 false。
[編輯] 注意
非空的 stacktrace_entry
可以從由 std::basic_stacktrace::current 建立的 std::basic_stacktrace 或此類 std::basic_stacktrace
的副本中獲取。
空的 stacktrace_entry
可以透過預設建構函式建立。
[編輯] 示例
本節不完整 原因:無示例 |