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

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

Destructs the match_results object and the associated sub-matches.

## Official Specification Summary (cppreference)

```cpp
~match_results(); // (since C++11)
```

Destructs the `match_results` object and the associated sub-matches.

### Complexity

Linear in the number of sub-matches.

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