# std::basic_stringbuf<CharT,Traits,Allocator>::get_allocator

> C++ Atlas: `cppatlas.com/w/cpp/io/basic_stringbuf/get_allocator` | Source: https://en.cppreference.com/w/cpp/io/basic_stringbuf/get_allocator | Domain: Input/output | Standards: C++20

Returns the allocator associated with the internal sequence container.

## Official Specification Summary (cppreference)

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

Returns the allocator associated with the internal sequence container.

### Parameters

(none)

### Return value

the associated allocator

### See also

- [`get_allocator`](https://en.cppreference.com/w/cpp/string/basic_string/get_allocator): returns the associated allocator (public member function of `std::basic_string<CharT,Traits,Allocator>`)

---
Attribution: content from https://en.cppreference.com/w/cpp/io/basic_stringbuf/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.