ITK
5.2.0
Insight Toolkit
|
#include <itkVariableLengthVector.h>
Public Member Functions | |
bool | operator() (unsigned int newSize, unsigned int oldSize) const |
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 223 of file itkVariableLengthVector.h.
|
inline |
Definition at line 226 of file itkVariableLengthVector.h.