# std::match_results<BidirIt,Alloc>::get_allocator

> C++ Atlas: `cppatlas.com/w/cpp/regex/match_results/get_allocator` | Source: https://en.cppreference.com/w/cpp/regex/match_results/get_allocator | Domain: Regular expressions | Standards: C++11

Returns the allocator associated with the object.

## Official Specification Summary (cppreference)

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

Returns the allocator associated with the object.

### Parameters

(none)

### Return value

The associated allocator.

### Complexity

Constant.

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