Growth

Undocumented in source.

Members

Static functions

grow
size_t grow(size_t from)
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

// alias G = Growth!(
//     0,   GrowTo!64,
//     64,  GrowByPercentage!2,
//     128, GrowByScale!2,
//     256, GrowByAmount!256
// );

// size_t value = 0;
// value = G.grow(value);
// assert(value == 64);

// value = G.grow(value);
// assert(value == 128);

// value = G.grow(value);
// assert(value == 256);

// value = G.grow(value);
// assert(value == 512);

Meta