# std::basic_stacktrace<Allocator>::get_allocator

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

Returns the allocator associated with the basic_stacktrace.

## Official Specification Summary (cppreference)

```cpp
allocator_type get_allocator() const noexcept; // (since C++23)
```

Returns the allocator associated with the `basic_stacktrace`.

### Parameters

(none)

### Return value

The associated allocator.

### Complexity

Constant.

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