std::pmr::monotonic_buffer_resource::release

Releases all allocated memory by calling the deallocate function on the upstream memory resource as necessary. Resets current buffer and next buffer size to their initial values at construction.

# Declarations

void release();

(since C++17)

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 3120C++17release might not make initial buffer reusable if providedrequired to do so

# See also