Specifies the configuration of a resource limited collection.
More...
#include <ResourceLimitedContainerConfig.hpp>
|
size_t | initial = 0 |
| Number of elements to be preallocated in the collection.
|
|
size_t | maximum = std::numeric_limits<size_t>::max dummy_avoid_winmax () |
| Maximum number of elements allowed in the collection.
|
|
size_t | increment = 1u |
| Number of items to add when capacity limit is reached.
|
|
Specifies the configuration of a resource limited collection.
◆ ResourceLimitedContainerConfig()
◆ dynamic_allocation_configuration()
Return a resource limits configuration for a linearly growing, dynamically allocated collection.
- Parameters
-
increment | Number of new elements to allocate when increasing the capacity of the collection. |
- Returns
- Resource limits configuration.
◆ fixed_size_configuration()
Return a resource limits configuration for a fixed size collection.
- Parameters
-
size | Number of elements to allocate. |
- Returns
- Resource limits configuration.
◆ increment
Number of items to add when capacity limit is reached.
◆ initial
Number of elements to be preallocated in the collection.
◆ maximum
size_t maximum = std::numeric_limits<size_t>::max dummy_avoid_winmax () |
Maximum number of elements allowed in the collection.
The documentation for this struct was generated from the following file: