-
#include "tensorstore/util/element_pointer.h"
-
template <typename SourcePointer>
requires IsNonVoidArrayBasePointer<
std::remove_cvref_t<SourcePointer>> &&
IsArrayBasePointerConvertible<
std::remove_cvref_t<SourcePointer>,
Pointer>
tensorstore::ElementPointer<ElementTagType>::ElementPointer(
SourcePointer&& pointer); -
template <typename SourcePointer>
requires IsArrayBasePointerConvertible<
std::remove_cvref_t<SourcePointer>,
Pointer>
tensorstore::ElementPointer<ElementTagType>::ElementPointer(
SourcePointer&& pointer,
pointee_dtype_t<SourcePointer> dtype); Constructs from another compatible pointer and optional data type.
- Parameters:¶
- SourcePointer &&pointer¶
The element pointer.
- pointee_dtype_t<SourcePointer> dtype
The data type, must be specified if
SourcePointer
has an element type ofvoid
.