| 233 | |
| 234 | template <typename T> |
| 235 | bool arrays_are_not_equal(const T* a, const T* b, size_t length) |
| 236 | { |
| 237 | for (size_t i = 0; i < length; ++i) { |
| 238 | if (a[i] != b[i]) { |
| 239 | return true; |
| 240 | } |
| 241 | } |
| 242 | return false; |
| 243 | } |
| 244 | |
| 245 | template <typename T> |
| 246 | void print_array(std::ostream& os, const T* array, size_t length) |