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

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

Returns a copy of the allocator that was passed in as the constructor argument or replaced through the assignment operator.

## Official Specification Summary (cppreference)

```cpp
allocator_type get_allocator() const noexcept;
```

Returns a copy of the allocator that was passed in as the constructor argument or replaced through the assignment operator.

### Parameters

(none)

### Example

> Note: This section is incomplete Reason: no example

### See also

- [(constructor)](https://en.cppreference.com/w/cpp/io/basic_syncbuf/basic_syncbuf): constructs a `basic_syncbuf` object (public member function)
- [`operator=`](https://en.cppreference.com/w/cpp/io/basic_syncbuf/operator=): assigns a `basic_syncbuf` object (public member function)

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