Compares two BufferNodeBase objects for equality
| 157 | |
| 158 | /// Compares two BufferNodeBase objects for equality |
| 159 | bool operator==(const BufferNode<T> &other) const noexcept { |
| 160 | using std::begin; |
| 161 | using std::end; |
| 162 | using std::equal; |
| 163 | return m_ptr == other.m_ptr && m_bytes == other.m_bytes && |
| 164 | m_linear_buffer == other.m_linear_buffer && |
| 165 | equal(begin(m_dims), end(m_dims), begin(other.m_dims)) && |
| 166 | equal(begin(m_strides), end(m_strides), begin(other.m_strides)); |
| 167 | }; |
| 168 | |
| 169 | /// Overloads the equality operator to call comparisons between Buffer |
| 170 | /// objects. Calls the BufferNodeBase equality operator if the other |