◐ Shell
clean mode source ↗

std::formatter<std::stacktrace_entry> - cppreference.com

来自cppreference.com

template<>
struct formatter<std::stacktrace_entry>;
(C++23 起)

std::formatter 针对 std::stacktrace_entry 的模板特化允许用户使用如 std::format 这样的格式化函数把站踪迹条目对象转换为字符串。

格式说明

格式说明的语法是:

填充与对齐 (可选) 宽度 (可选)

填充与对齐宽度 具有与标准格式说明中相同的含义。

格式化输出与 to_string 的结果相匹配,并按格式说明符进行适当调整。

示例

参阅