LLGL 0.05 Beta
Loading...
Searching...
No Matches
LLGL::GrowStrategyAddHalf Struct Reference

Container capacity grow strategy to increase the capacity to 150%. More...

#include <SmallVector.h>

Static Public Member Functions

static std::size_t Grow (std::size_t size)
 Returns the increased size by adding half of the input value, effectively returning 150% the input size. This is always greater than or equal to size.

Detailed Description

Container capacity grow strategy to increase the capacity to 150%.

Remarks
This is the default grow strategy for the SmallVector container.
See also
SmallVector

Member Function Documentation

◆ Grow()

std::size_t LLGL::GrowStrategyAddHalf::Grow ( std::size_t size)
inlinestatic

Returns the increased size by adding half of the input value, effectively returning 150% the input size. This is always greater than or equal to size.


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