Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::stacktrace_entry(3)      C++ Standard Libary     std::stacktrace_entry(3)

NAME
       std::stacktrace_entry - std::stacktrace_entry

Synopsis
	  Defined in header <stacktrace>
	  class	stacktrace_entry;	  (since C++23)

	  The stacktrace_entry class provides operations for querying informa-
       tion about an
	  evaluation  in  a stacktrace.	Each stacktrace_entry object is	either
       empty, or
	  represents an	evaluation in a	stacktrace.

	  stacktrace_entry models std::regular and
	  std::three_way_comparable<std::strong_ordering>.

Member types
	  native_handle_type(C++23) implementation-defined native handle type

Member functions
	  constructor	constructs a new stacktrace_entry
	  (C++23)	(public	member function)
	  destructor	destroys the stacktrace_entry
	  (C++23)	(public	member function)
	  operator=	assigns	the contents of	one  stacktrace_entry  to  an-
       other
	  (C++23)	(public	member function)

Observers
	  native_handle	 gets  the implementation-defined native handle	of the
       stacktrace_entry
	  (C++23)	(public	member function)
	  operator bool	checks whether the stacktrace_entry is empty
	  (C++23)	(public	member function)
		Query
	  description	gets the description of	the evaluation represented  by
       the
	  (C++23)	stacktrace_entry
			(public	member function)
			gets  the  name	of the source file that	lexically con-
       tains the
	  source_file	expression or statement	 whose	evaluation  is	repre-
       sented by the
	  (C++23)	stacktrace_entry
			(public	member function)
	  source_line	gets the line number that lexically relates the	evalu-
       ation represented
	  (C++23)	by the stacktrace_entry
			(public	member function)

Non-member functions
	  operator==  compares two stacktrace_entry values
	  operator<=> (function)
	  (C++23)
	  to_string    returns	a  string  with	 a  description	 of the	stack-
       trace_entry
	  (C++23)     (function)
	  operator<<  performs stream output of	stacktrace_entry
	  (C++23)     (function	template)

Helper classes
	  std::hash<std::stacktrace_entry>	hash support  for  std::stack-
       trace_entry
	  (C++23)				 (class	 template  specializa-
       tion)
	  std::formatter<std::stacktrace_entry>	formatting support for	stack-
       trace_entry
	  (C++23)				 (class	 template  specializa-
       tion)

Notes
	  boost::stacktrace::frame (available in Boost.Stacktrace) can be used
       instead when
	  std::stacktrace_entry	is not available.

	   Feature-test	macro	Value	 Std	    Feature
	  __cpp_lib_stacktrace 202011L (C++23) Stacktrace library

Example
	   This	section	is incomplete
	   Reason: no example

See also
	  basic_stacktrace approximate representation  of  an  invocation  se-
       quence consists of
	  (C++23)	   stacktrace entries
			   (class template)
	  source_location   a  class representing information about the	source
       code, such as
	  (C++20)	   file	names, line numbers, and function names
			   (class)

Category:
	    * Todo no example

http://cppreference.com		  2024.06.10	      std::stacktrace_entry(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::stacktrace_entry&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help