ITK  4.9.0
Insight Segmentation and Registration 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:

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 183 of file itkVariableLengthVector.h.

Public Member Functions

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

Member Function Documentation

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

Definition at line 185 of file itkVariableLengthVector.h.


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