| 82 | // Swap non-member function template (can only swap arrays with identical startIndex) |
| 83 | template <typename T, int startIndex> |
| 84 | void swap(Array<T, startIndex>& one, Array<T, startIndex>& other) noexcept |
| 85 | { |
| 86 | one.swap(other); // Forward to public member function |
| 87 | } |
| 88 | |
| 89 | #endif |