# std::basic_stacktrace<Allocator>::at

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

Returns a reference to the entry at specified location pos, with bounds checking.

## Official Specification Summary (cppreference)

```cpp
const_reference at( size_type pos ) const; // (since C++23)
```

Returns a reference to the entry at specified location `pos`, with bounds checking.

If `pos` is not within the range of the stacktrace, an exception of type `std::out_of_range` is thrown.

### Parameters

- `pos` - position of the stacktrace entry to return

### Return value

Reference to the requested entry.

### Exceptions

`std::out_of_range` if `pos >= size()`.

### Complexity

Constant.

### Example

> Note: This section is incomplete Reason: no example

### See also

- [`operator[]`](https://en.cppreference.com/w/cpp/utility/basic_stacktrace/operator_at): access specified stacktrace entry (public member function)

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