MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / swap

Method swap

src/backend/opencl/Array.hpp:183–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181 }
182
183 void swap(Array<T> &other) noexcept {
184 using std::swap;
185 swap(info, other.info);
186 swap(data, other.data);
187 swap(data_dims, other.data_dims);
188 swap(node, other.node);
189 swap(owner, other.owner);
190 }
191
192 Array(const af::dim4 &dims, const af::dim4 &strides, dim_t offset,
193 const T *const in_data, bool is_device = false);

Callers

nothing calls this directly

Calls 1

swapFunction · 0.85

Tested by

no test coverage detected