![]() |
ITK
4.12.0
Insight Segmentation and Registration Toolkit
|
#include <itkVariableLengthVector.h>
Inheritance diagram for itk::VariableLengthVector< TValue >::DontShrinkToFit:
Collaboration diagram for itk::VariableLengthVector< TValue >::DontShrinkToFit: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 noexcept |
|
inlinenoexcept |
Definition at line 218 of file itkVariableLengthVector.h.
1.8.5