# std::hash<std::basic_stacktrace>

> C++ Atlas: `cppatlas.com/w/cpp/utility/basic_stacktrace/hash` | Source: https://en.cppreference.com/w/cpp/utility/basic_stacktrace/hash | Domain: Utility | Standards: C++11, C++23

The template specialization of std::hash for std::basic_stacktrace allows users to obtain hashes of values of type std::basic_stacktrace.

## Official Specification Summary (cppreference)

```cpp
// Defined in header <stacktrace>
template< class Allocator > struct hash<std::basic_stacktrace<Allocator>>; // (since C++23)
```

The template specialization of `std::hash` for `std::basic_stacktrace` allows users to obtain hashes of values of type `std::basic_stacktrace`.

`operator()` of this specialization is noexcept.

### Example

> Note: This section is incomplete Reason: no example

### See also

- [`hash`](https://en.cppreference.com/w/cpp/utility/hash) (C++11): hash function object (class template)
- [`std::hash<std::stacktrace_entry>`](https://en.cppreference.com/w/cpp/utility/stacktrace_entry/hash) (C++23): hash support for `std::stacktrace_entry` (class template specialization)

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