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

#include <itkVariableLengthVector.h>

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

Public Member Functions

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

Detailed Description

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

VariableLengthVector Allocation Policy: Never reallocate memory. This policy, when used from VariableLengthVector::SetSize(), always implies that the previous internal buffer will be kept. Even if not enough memory was available.

The typical use case of this policy is to make sure a VariableLengthVector is not a proxy object.

Returns
false (always)
Precondition
oldSize == newSize, checked by assertion
See also
itk::VariableLengthVector::SetSize
AlwaysReallocate
ShrinkToFit
DontShrinkToFit

Definition at line 156 of file itkVariableLengthVector.h.

Member Function Documentation

◆ operator()()

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

Definition at line 159 of file itkVariableLengthVector.h.


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