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

Method swap

Common/Core/vtkDataArrayTupleRange_Generic.h:1506–1514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1504 }
1505
1506 friend VTK_ITER_INLINE void swap(ConstTupleIterator& lhs, ConstTupleIterator& rhs) noexcept
1507 {
1508 // Different arrays may use different iterator implementations.
1509 VTK_ITER_ASSERT(
1510 lhs.GetArray() == rhs.GetArray(), "Cannot swap iterators from different arrays.");
1511
1512 using std::swap;
1513 swap(lhs.GetTupleId(), rhs.GetTupleId());
1514 }
1515
1516private:
1517 VTK_ITER_INLINE

Callers

nothing calls this directly

Calls 3

swapFunction · 0.70
GetArrayMethod · 0.45
GetTupleIdMethod · 0.45

Tested by

no test coverage detected