| 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 |