std::operator<<(std::stacktrace_entry)

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

# Return value

os

# Example

#include <iostream>
#include <stacktrace>
 
int main()
{
    for (const auto& f : std::stacktrace::current())
        std::cout << f << '\n';
}

# See also