Specifies the configuration of a resource limited collection. More...
#include <ResourceLimitedContainerConfig.hpp>
Public Member Functions | |
| ResourceLimitedContainerConfig (size_t ini=0, size_t max=std::numeric_limits< size_t >::max dummy_avoid_winmax(), size_t inc=1u) | |
Static Public Member Functions | |
| static ResourceLimitedContainerConfig | fixed_size_configuration (size_t size) |
| Return a resource limits configuration for a fixed size collection. More... | |
| static ResourceLimitedContainerConfig | dynamic_allocation_configuration (size_t increment=1u) |
| Return a resource limits configuration for a linearly growing, dynamically allocated collection. More... | |
Public Attributes | |
| size_t | initial = 0 |
| Number of elements to be preallocated in the collection. More... | |
| size_t | maximum = std::numeric_limits<size_t>::max dummy_avoid_winmax () |
| Maximum number of elements allowed in the collection. More... | |
| size_t | increment = 1u |
| Number of items to add when capacity limit is reached. More... | |
Specifies the configuration of a resource limited collection.
|
inline |
|
inlinestatic |
Return a resource limits configuration for a linearly growing, dynamically allocated collection.
| increment | Number of new elements to allocate when increasing the capacity of the collection. |
|
inlinestatic |
Return a resource limits configuration for a fixed size collection.
| size | Number of elements to allocate. |
| size_t increment = 1u |
Number of items to add when capacity limit is reached.
| 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.