Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::stacktrace_entry

      From cppreference.com
      <cpp‎ |utility
       
       
      Diagnostics library
       
       
      Defined in header<stacktrace>
      class stacktrace_entry;
      (since C++23)

      Thestacktrace_entry class provides operations for querying information about an evaluation in a stacktrace. Eachstacktrace_entry object is either empty, or represents an evaluation in a stacktrace.

      stacktrace_entry modelsstd::regular andstd::three_way_comparable<std::strong_ordering>.

      Contents

      [edit]Member types

      native_handle_type implementation-defined native handle type

      [edit]Member functions

      constructs a newstacktrace_entry
      (public member function)[edit]
      (destructor)
      destroys thestacktrace_entry
      (public member function)
      assigns the contents of onestacktrace_entry to another
      (public member function)
      Observers
      gets the implementation-defined native handle of thestacktrace_entry
      (public member function)
      checks whether thestacktrace_entry is empty
      (public member function)
      Query
      gets the description of the evaluation represented by thestacktrace_entry
      (public member function)
      gets the name of the source file that lexically contains the expression or statement whose evaluation is represented by thestacktrace_entry
      (public member function)[edit]
      gets the line number that lexically relates the evaluation represented by thestacktrace_entry
      (public member function)[edit]

      [edit]Non-member functions

      compares twostacktrace_entry values
      (function)
      (C++23)
      returns a string with a description of thestacktrace_entry
      (function)[edit]
      (C++23)
      performs stream output ofstacktrace_entry
      (function template)[edit]

      [edit]Helper classes

      hash support forstd::stacktrace_entry
      (class template specialization)[edit]
      formatting support forstacktrace_entry
      (class template specialization)[edit]

      [edit]Notes

      boost::stacktrace::frame (available inBoost.Stacktrace) can be used instead whenstd::stacktrace_entry is not available.

      Feature-test macroValueStdFeature
      __cpp_lib_stacktrace202011L(C++23)Stacktrace library

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      approximate representation of an invocation sequence consists of stacktrace entries
      (class template)[edit]
      a class representing information about the source code, such as file names, line numbers, and function names
      (class)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/utility/stacktrace_entry&oldid=177349"

      [8]ページ先頭

      ©2009-2025 Movatter.jp