9 #include <ginkgo/config.hpp>
10 #include <ginkgo/core/base/array.hpp>
146 template <
typename T>
148 static std::unique_ptr<segmented_array<T>> create(
153 return std::make_unique<segmented_array<T>>(
157 return std::make_unique<segmented_array<T>>(std::move(exec),
163 template <
typename T>
164 struct temporary_clone_helper<const segmented_array<T>> {
165 static std::unique_ptr<const segmented_array<T>> create(
166 std::shared_ptr<const Executor> exec,
const segmented_array<T>* ptr,
169 return std::make_unique<segmented_array<T>>(
176 template <
typename T>
177 class copy_back_deleter<segmented_array<T>>
178 :
public copy_back_deleter_from_assignment<segmented_array<T>> {
180 using copy_back_deleter_from_assignment<
181 segmented_array<T>>::copy_back_deleter_from_assignment;