ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkVariableLengthVector.h>
VariableLengthVector
Allocation Policy: reallocate memory only when size increases. This policy, when used from VariableLengthVector::SetSize()
, will reallocate the internal buffer only if the new size requested for the VariableLengthVector
increases.
newSize
is bigger than oldSize
std::vector<>
, VariableLengthVector
has no capacity concept: the size of the VariableLengthVector
is its capacity. However, this will help a class without capacity to emulate one. The consequence is that reallocations will occur with scenarios such as the following: Definition at line 216 of file itkVariableLengthVector.h.
Public Member Functions | |
bool | operator() (unsigned int newSize, unsigned int oldSize) const |
|
inline |
Definition at line 218 of file itkVariableLengthVector.h.