std:: operator<< (std::stacktrace_entry)
From cppreference.net
<
cpp
|
utility
|
stacktrace entry
C++
Diagnostics library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::stacktrace_entry
|
헤더에 정의됨
<stacktrace>
|
||
|
std::
ostream
&
operator
<<
(
std::
ostream
&
os,
const
std::
stacktrace_entry
&
f
)
;
|
(C++23부터) | |
f 의 설명을 출력 스트림 os 에 삽입합니다. return os << std:: to_string ( f ) ; 와 동일합니다.
목차 |
매개변수
| os | - | 출력 스트림 |
| f | - |
설명이 삽입될
stacktrace_entry
|
반환값
os
예외
구현 정의 예외를 던질 수 있습니다.
예제
이 코드 실행
#include <iostream> #include <stacktrace> int main() { for (const auto& f : std::stacktrace::current()) std::cout << f << '\n'; }
가능한 출력:
0x0000000000402AA7 in ./prog.exe __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6 0x00000000004029B9 in ./prog.exe
참고 항목
|
(C++23)
|
basic_stracktrace
의 스트림 출력을 수행합니다
(함수 템플릿) |