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