5 #ifndef GKO_PUBLIC_CORE_BASE_SEGMENTED_ARRAY_HPP_
6 #define GKO_PUBLIC_CORE_BASE_SEGMENTED_ARRAY_HPP_
11 #include <ginkgo/config.hpp>
12 #include <ginkgo/core/base/array.hpp>
148 template <
typename T>
150 static std::unique_ptr<segmented_array<T>> create(
155 return std::make_unique<segmented_array<T>>(
159 return std::make_unique<segmented_array<T>>(std::move(exec),
165 template <
typename T>
166 struct temporary_clone_helper<const segmented_array<T>> {
167 static std::unique_ptr<const segmented_array<T>> create(
168 std::shared_ptr<const Executor> exec,
const segmented_array<T>* ptr,
171 return std::make_unique<segmented_array<T>>(
178 template <
typename T>
179 class copy_back_deleter<segmented_array<T>>
180 :
public copy_back_deleter_from_assignment<segmented_array<T>> {
182 using copy_back_deleter_from_assignment<
183 segmented_array<T>>::copy_back_deleter_from_assignment;
190 #endif // GKO_PUBLIC_CORE_BASE_SEGMENTED_ARRAY_HPP_