![]() |
ITK
5.3.0
Insight Toolkit
|
#include <itkVariableLengthVector.h>
Inheritance diagram for itk::VariableLengthVector< TValue >::DontShrinkToFit:
Collaboration diagram for itk::VariableLengthVector< TValue >::DontShrinkToFit: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 221 of file itkVariableLengthVector.h.
|
inline |
Definition at line 224 of file itkVariableLengthVector.h.
1.8.16