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

Method swap

Common/Core/vtkDataArrayTupleRange_Generic.h:1685–1693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1683 }
1684
1685 friend VTK_ITER_INLINE void swap(TupleIterator& lhs, TupleIterator& rhs) noexcept
1686 {
1687 // Different arrays may use different iterator implementations.
1688 VTK_ITER_ASSERT(
1689 lhs.GetArray() == rhs.GetArray(), "Cannot swap iterators from different arrays.");
1690
1691 using std::swap;
1692 swap(lhs.GetTupleId(), rhs.GetTupleId());
1693 }
1694
1695 friend struct ConstTupleIterator<ArrayType, TupleSize>;
1696 friend struct ConstTupleReference<ArrayType, TupleSize>;

Callers 1

swapFunction · 0.45

Calls 3

swapFunction · 0.70
GetArrayMethod · 0.45
GetTupleIdMethod · 0.45

Tested by

no test coverage detected