MeshLib C Docs
Loading...
Searching...
No Matches
MRResizeNoInit.h File Reference

Go to the source code of this file.

Typedefs

typedef enum MR_ReserveMode MR_ReserveMode
 how resizeNoInit reserves the memory when the capacity is short

Enumerations

enum  MR_ReserveMode { MR_ReserveMode_Exact = 0 , MR_ReserveMode_Grow = 1 }
 how resizeNoInit reserves the memory when the capacity is short More...

Typedef Documentation

◆ MR_ReserveMode

how resizeNoInit reserves the memory when the capacity is short

Enumeration Type Documentation

◆ MR_ReserveMode

how resizeNoInit reserves the memory when the capacity is short

Enumerator
MR_ReserveMode_Exact 

exactly the target size: for a vector resized once

the vector grows the capacity geometrically by its own policy, as push_back does, so repeated small growths copy the elements only O(log) times

MR_ReserveMode_Grow