Container capacity grow strategy to increase the capacity to the next higher power of two.
More...
#include <SmallVector.h>
|
| static unsigned int | Round (unsigned int v) |
| static unsigned long | Round (unsigned long v) |
| static unsigned long long | Round (unsigned long long v) |
| static std::size_t | Grow (std::size_t size) |
| | Returns the increased size by rounding up to the next power of two. This is always greater than or equal to size.
|
Container capacity grow strategy to increase the capacity to the next higher power of two.
- See also
- SmallVector
◆ Grow()
| std::size_t LLGL::GrowStrategyRoundUpPow2::Grow |
( |
std::size_t | size | ) |
|
|
inlinestatic |
Returns the increased size by rounding up to the next power of two. This is always greater than or equal to size.
◆ Round() [1/3]
| unsigned int LLGL::GrowStrategyRoundUpPow2::Round |
( |
unsigned int | v | ) |
|
|
inlinestatic |
◆ Round() [2/3]
| unsigned long long LLGL::GrowStrategyRoundUpPow2::Round |
( |
unsigned long long | v | ) |
|
|
inlinestatic |
◆ Round() [3/3]
| unsigned long LLGL::GrowStrategyRoundUpPow2::Round |
( |
unsigned long | v | ) |
|
|
inlinestatic |
The documentation for this struct was generated from the following file: