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

Container capacity grow strategy to increase the capacity to the next higher power of two. More...

#include <SmallVector.h>

Static Public Member Functions

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.

Detailed Description

Container capacity grow strategy to increase the capacity to the next higher power of two.

See also
SmallVector

Member Function Documentation

◆ 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: