class basic_stacktrace; (1) (C++23 起) using stacktrace = std::basic_stacktrace<std::allocator<std::stacktrace_entry>>; (2) (C++23 起) 1) basic_stacktrace 类模板表示整个栈踪或其给定部分的快照。它满足知分配器容器 (AllocatorAwareContainer) 、序列容器 (SequenceContainer) 及可逆容器 (...
逆向basic_stacktrace 的尾迭代器。 复杂度 常数。 示例运行此代码 #include <algorithm> #include <iostream> #include <stacktrace> int main() { auto trace = std::stacktrace::current(); auto empty_trace = std::stacktrace{}; // 打印 stacktrace 。 std::for_each(trace.rbegin(), trace.rend()...
usingstacktrace= std::basic_stacktrace<std::allocator<std::stacktrace_entry>>; (2)(since C++23) namespacepmr{ usingstacktrace= std::basic_stacktrace<std::pmr::polymorphic_allocator<std::stacktrace_entry>>; } (3)(since C++23) 1)Thebasic_stacktraceclass template represents a snapshot of the ...
Parameters other-basic_stacktraceto exchange the contents with Return value (none) Exceptions noexceptspecification: noexcept(std::allocator_traits<Allocator>::propagate_on_container_swap::value ||std::allocator_traits<Allocator>::is_always_equal::value) ...
VisualBasic.ApplicationServices 程序集: Microsoft.VisualBasic.dll 获取当前的堆栈跟踪信息。 C# 复制 public string StackTrace { get; } 属性值 String 一个String 值,包含当前的堆栈跟踪信息。 返回值可能为 Empty。 例外 ArgumentOutOfRangeException 请求的堆栈跟踪信息超出范围。 示例 此示例使用...
Microsoft.VisualBasic.ApplicationServices アセンブリ: Microsoft.VisualBasic.Forms.dll 現在のスタック トレース情報を取得します。 C# publicstringStackTrace {get; } プロパティ値 String 現在のスタック トレース情報を保持するString。 戻り値がEmptyになる場合もあります。
定义于头文件 <stacktrace> template< class Allocator > struct hash<std::basic_stacktrace<Allocator>>; (C++23 起) std::hash 对std::basic_stacktrace 的模板特化允许用户获得 std::basic_stacktrace 类型值的哈希。 此特化的 operator() 为noexcept 。 示例 本节未完成原因:暂无示例 参阅 hash(C++11) ...
basic_stacktrace::current (C++23) basic_stacktrace::get_allocator (C++23) Iterators basic_stacktrace::beginbasic_stacktrace::cbegin (C++23)(C++23) basic_stacktrace::endbasic_stacktrace::cend (C++23)(C++23) basic_stacktrace::rbeginbasic_stacktrace::crbegin (C++23)(C++23) basic_stacktrace::rendba...
structformatter<std::basic_stacktrace<Allocator>>; (since C++23) The template specialization ofstd::formatterforstd::basic_stacktrace<Allocator>allows users to convert a stacktrace object to string usingformatting functionssuch asstd::format.
std::operator<<(std::basic_stacktrace) Defined in header<stacktrace> template<classAllocator> std::ostream&operator<<(std::ostream&os,conststd::basic_stacktrace<Allocator>&st); (since C++23) Inserts the description ofstinto the output streamos. Equivalent toreturnos<<std::to_string(st);. ...