![]() |
ITK
4.12.0
Insight Segmentation and Registration Toolkit
|
#include <itkVariableLengthVector.h>
Inheritance diagram for itk::VariableLengthVector< TValue >::KeepOldValues:
Collaboration diagram for itk::VariableLengthVector< TValue >::KeepOldValues:VariableLengthVector Invariability Policy: Always keep old values. This policy, when used from VariableLengthVector::SetSize(), always copies min(newSize,oldSize) previous values from the previous internal buffer to the new one
oldBuffer and newBuffer are expected to differ (unchecked). TValue assignment is a noexcept operation. newBuffer is not null (pre-conditions imposed by some implementations of std::copy()) [oldBuffer, oldBuffer+oldSize) is a valid rangeThis behaviour mimics std::vector<>::resize() behaviour. However, it makes to sense from VariableLengthVector::operator=()
Definition at line 264 of file itkVariableLengthVector.h.
Public Member Functions | |
| template<typename TValue2 > | |
| void | operator() (unsigned int newSize, unsigned int oldSize, TValue2 *oldBuffer, TValue2 *newBuffer) const noexcept |
|
inlinenoexcept |
Definition at line 267 of file itkVariableLengthVector.h.
1.8.5