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

#include <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
 

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.

Returns
whether newSize differs from oldSize
Note
The name is related to DontShrinkToFit reallocation policy that will avoid reallocating when enough memory has already been allocated.
See also
itk::VariableLengthVector::SetSize
AlwaysReallocate
NeverReallocate
DontShrinkToFit

Definition at line 187 of file itkVariableLengthVector.h.

Member Function Documentation

◆ operator()()

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

Definition at line 190 of file itkVariableLengthVector.h.


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