std::operator<<(std::stacktrace_entry)
Min standard notice:
Header: <stacktrace>
Inserts the description of f into the output stream os. Equivalent to return os « std::to_string(f);.
# Declarations
std::ostream& operator<<( std::ostream& os, const std::stacktrace_entry& f );
(since C++23)
# Parameters
os: an output streamf: a stacktrace_entry whose description is to be inserted
# Return value
os
# Example
#include <iostream>
#include <stacktrace>
int main()
{
for (const auto& f : std::stacktrace::current())
std::cout << f << '\n';
}