ITK  5.4.0
Insight Toolkit
Public Member Functions | List of all members
itk::VariableLengthVector< TValue >::ShrinkToFit Struct Reference

#include <itkVariableLengthVector.h>

Detailed Description

template<typename TValue>
struct itk::VariableLengthVector< TValue >::ShrinkToFit

VariableLengthVector Allocation Policy: reallocate memory only when size changes. This policy, when used from VariableLengthVector::SetSize(), will reallocate the internal buffer only if the size of the VariableLengthVector changes.

whether newSize differs from oldSize
The name is related to DontShrinkToFit reallocation policy that will avoid reallocating when enough memory has already been allocated.
See also

Definition at line 185 of file itkVariableLengthVector.h.

+ Inheritance diagram for itk::VariableLengthVector< TValue >::ShrinkToFit:
+ Collaboration diagram for itk::VariableLengthVector< TValue >::ShrinkToFit:

Public Member Functions

bool operator() (unsigned int newSize, unsigned int oldSize) const

Member Function Documentation

◆ operator()()

template<typename TValue>
bool itk::VariableLengthVector< TValue >::ShrinkToFit::operator() ( unsigned int  newSize,
unsigned int  oldSize 
) const

Definition at line 188 of file itkVariableLengthVector.h.

The documentation for this struct was generated from the following file: