49 new_array.
n = other.
n;
50 return *
this = new_array;
59 other.owns_array =
false;
67 std::swap(
array, other.array);
68 other.owns_array =
false;
KOKKOS_INLINE_FUNCTION HostArray(const HostArray &other)
Definition: host_array.hpp:40
KOKKOS_INLINE_FUNCTION ~HostArray()
Definition: host_array.hpp:34
KOKKOS_INLINE_FUNCTION HostArray()
Definition: host_array.hpp:21
T * array
Definition: host_array.hpp:13
HostArray(HostArray &&other) noexcept
Definition: host_array.hpp:54
bool owns_array
Definition: host_array.hpp:15
HostArray(size_t n_in)
Definition: host_array.hpp:26
HostArray & operator=(HostArray &&other) noexcept
Definition: host_array.hpp:64
const T & operator()(int i) const
Definition: host_array.hpp:74
KOKKOS_INLINE_FUNCTION HostArray & operator=(const HostArray &other)
Definition: host_array.hpp:46
size_t n
Definition: host_array.hpp:16
size_t size() const
Definition: host_array.hpp:78
Definition: host_array.hpp:11