#include "tensorstore/util/element_pointer.h"
template <typename SourcePointer, typename TargetPointer>
constexpr bool tensorstore::IsArrayBasePointerConvertible;

bool-valued metafunction that evaluates to true if SourcePointer may be converted to TargetPointer when used as an array base pointer.

Specifically, the following conversions are permitted:

SourcePointer

TargetPointer

T*

U*

ByteStridedPointer<T>

U*

std::shared_ptr<T>

U*

std::shared_ptr<T>

std::shared_ptr<U>

where IsElementTypeImplicitlyConvertible<T,U> is true.