# std::experimental::pmr::synchronized_pool_resource::release

> C++ Atlas: `cppatlas.com/w/cpp/experimental/synchronized_pool_resource/release` | Source: https://en.cppreference.com/w/cpp/experimental/synchronized_pool_resource/release | Domain: Technical specifications

Releases all memory owned by this resource by calling the deallocate function of the upstream memory resource as needed.

## Official Specification Summary (cppreference)

```cpp
void release(); // (library fundamentals TS)
```

Releases all memory owned by this resource by calling the `deallocate` function of the upstream memory resource as needed.

Memory is released back to the upstream resource even if `deallocate` has not been called for some of the allocated blocks.

### See also

- [`deallocate`](https://en.cppreference.com/w/cpp/experimental/memory_resource/deallocate): deallocates memory (public member function of `std::experimental::pmr::memory_resource`)

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