# std::formatter<std::stacktrace_entry>

> C++ Atlas: `cppatlas.com/w/cpp/utility/stacktrace_entry/formatter` | Source: https://en.cppreference.com/w/cpp/utility/stacktrace_entry/formatter | Domain: Utility | Standards: C++20, C++23

The template specialization of std::formatter for std::stacktrace_entry allows users to convert a stacktrace entry object to string using formatting functions such as std::format.

## Official Specification Summary (cppreference)

```cpp
// Defined in header <stacktrace>

template<>
struct formatter<std::stacktrace_entry>; // (since C++23)
```

The template specialization of `std::formatter` for `std::stacktrace_entry` allows users to convert a stacktrace entry object to string using formatting functions such as `std::format`.

### Format specification

The syntax of format specifications is:

- *fill-and-align* (optional) *width* (optional)

*fill-and-align* and *width* have the same meaning as in standard format specification.

The formatted output matches the result of `to_string`, adjusted as appropriate for the format specifiers.

### Example

> Note: This section is incomplete Reason: no example

### See also

- [`formatter`](https://en.cppreference.com/w/cpp/utility/format/formatter) (C++20): defines formatting rules for a given type (class template)
- [`print`](https://en.cppreference.com/w/cpp/io/print) (C++23): prints to `stdout` or a file stream using formatted representation of the arguments (function template)

---
Attribution: content from https://en.cppreference.com/w/cpp/utility/stacktrace_entry/formatter (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.