libstdc++: std::pmr::pool_options Struct Reference

libstdc++

std::pmr::pool_options Struct Reference
Utilities » Memory » Polymorphic memory resources

`#include <memory_resource>`

## Public Attributes
size_t | largest_required_pool_block
size_t | max_blocks_per_chunk

## Detailed Description

Parameters for tuning a pool resource's behaviour.

Since
  C++17

Definition at line 124 of file memory_resource.

## Member Data Documentation

## ◆ largest_required_pool_block

size_t std::pmr::pool_options::largest_required_pool_block

Definition at line 138 of file memory_resource.

## ◆ max_blocks_per_chunk

size_t std::pmr::pool_options::max_blocks_per_chunk

Upper limit on number of blocks in a chunk.

A lower value prevents allocating huge chunks that could remain mostly unused, but means pools will need to replenished more frequently.

Definition at line 131 of file memory_resource.

The documentation for this struct was generated from the following file:

- memory_resource