MCPcopy Create free account
hub / github.com/Kitware/VTK / swap

Method swap

Common/Core/vtkDataArrayValueRange_Generic.h:828–836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

826 }
827
828 friend VTK_ITER_INLINE void swap(ValueIterator& lhs, ValueIterator& rhs) noexcept
829 {
830 // Different arrays may use different iterator implementations.
831 VTK_ITER_ASSERT(
832 lhs.GetArray() == rhs.GetArray(), "Cannot swap iterators from different arrays.");
833
834 using std::swap;
835 swap(lhs.GetId(), rhs.GetId());
836 }
837
838 friend struct ConstValueIterator<ArrayType, TupleSize, ForceValueTypeForVtkDataArray>;
839

Callers

nothing calls this directly

Calls 3

swapFunction · 0.70
GetArrayMethod · 0.45
GetIdMethod · 0.45

Tested by

no test coverage detected