MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / operator==

Method operator==

src/backend/cpu/jit/BufferNode.hpp:159–167  ·  view source on GitHub ↗

Compares two BufferNodeBase objects for equality

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

beginFunction · 0.85
endFunction · 0.85
isBufferMethod · 0.80
getTypeMethod · 0.45

Tested by

no test coverage detected