std::hash<std::stacktrace_entry>(C++23)std::stacktrace_entry 的散列支持 (类模板特化) 注解 boost::stacktrace::frame(可用于Boost.Stacktrace)能在std::stacktrace_entry不可用时作为代替。 示例 本节未完成 原因:暂无示例 参阅 basic_stacktrace(C++23)由栈踪条目组成的调用序列的近似表示 ...
std::stacktrace_entry constexprexplicitoperatorbool()constnoexcept; (since C++23) Checks whether thestacktrace_entryis non-empty, i.e. it represents an evaluation in a stacktrace. Parameters (none) Return value trueif thestacktrace_entryis non-empty,falseotherwise. ...
stacktrace_entry::description stacktrace_entry::source_file stacktrace_entry::source_line Non-member functions operator==operator<=> to_string(std::stacktrace_entry) operator<< Helper classes hash<std::stacktrace_entry> formatter<std::stacktrace_entry> Defined in header <stacktrace> template<> struc...
(std::function<void(void)>&& cleaner): f(std::move(cleaner)) {} ~Guard() { f(); } }; // keep stack traces and exception code class StackTrace { std::stacktrace stack; DWORD code; public: explicit StackTrace(DWORD excCode): code(excCode), stack(std::stac...
(std::function<void(void)>&& cleaner): f(std::move(cleaner)) {} ~Guard() { f(); } }; // keep stack traces and exception code class StackTrace { std::stacktrace stack; DWORD code; public: explicit StackTrace(DWORD excCode): code(excCode), stack(std::stacktrace...
std::stacktrace_entry::description From cppreference.com <cpp |utility |stacktrace entry std::stringdescription()const; (since C++23) Returns a description of the evaluation represented by*thison success, or an empty string on failure other than allocation failure, e.g. when*thisis empt...
hash<std::stacktrace_entry> formatter<std::stacktrace_entry> std::string source_file() const; (since C++23) Returns the presumed or actual name of the source file that lexically contains the expression or statement whose evaluation is represented by *this, or an empty string on failure other...
to_string(std::stacktrace_entry) operator<< Helper classes hash<std::stacktrace_entry> formatter<std::stacktrace_entry> std::uint_least32_t source_line() const; (since C++23) Returns a 1-based line number that lexically relates to the evaluation represented by *this, or 0 on failure oth...