PlayRho  2.0.0
An interactive physics engine & library.
playrho::pmr::PoolMemoryOptions Struct Reference

Configurable options. More...

#include <playrho/pmr/PoolMemoryResource.hpp>

Public Attributes

std::size_t limitBuffers {static_cast<std::size_t>(-1)}
 Limit on number of buffers. More...
 
bool releasable {true}
 Whether buffers are releasable when unused and a bigger space is needed.
 
std::size_t reserveBuffers {}
 Reserver buffers. More...
 
std::size_t reserveBytes {}
 Reserve bytes. More...
 

Detailed Description

Configurable options.

Member Data Documentation

◆ limitBuffers

std::size_t playrho::pmr::PoolMemoryOptions::limitBuffers {static_cast<std::size_t>(-1)}

Limit on number of buffers.

Note
This limit is used by do_allocate.
Needs to be 2+ for supporting post-construction push/emplace increases in container capacity.
See also
do_allocate.

Referenced by playrho::pmr::PoolMemoryResource::do_allocate().

◆ reserveBuffers

std::size_t playrho::pmr::PoolMemoryOptions::reserveBuffers {}

Reserver buffers.

Note
This is the initial number of buffers to reserve space for on construction.

◆ reserveBytes

std::size_t playrho::pmr::PoolMemoryOptions::reserveBytes {}

Reserve bytes.

Note
This is the initial size of any buffers reserved on construction. If zero, no-memory is pre-allocated for these buffers.

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