19#include <source_location>
36 std::string
format_multiline(std::source_location loc,
const std::string &stacktrace);
61struct SourceLocation {
63 using srcloc = std::source_location;
67 inline constexpr explicit SourceLocation(srcloc _loc = srcloc::current()) noexcept
namespace for basic c++ utilities
std::string format_one_line_func(std::source_location loc)
format the location in a one liner with the function name displayed
std::string format_one_line(std::source_location loc)
format the location in a one liner
std::string format_multiline(std::source_location loc)
format the location in multiple lines
std::string format_one_line_func() const
format the location in a one liner with the function name displayed
std::string format_multiline() const
format the location in multiple lines
std::string format_multiline(const std::string &stacktrace) const
format the location in multiple lines with a given stacktrace
std::string format_one_line() const
format the location in a one liner