-
#include "tensorstore/util/element_pointer.h"
-
template <typename SourcePointer, typename TargetPointer>
constexpr bool tensorstore::IsArrayBasePointerConvertible; bool
-valued metafunction that evaluates totrue
ifSourcePointer
may be converted toTargetPointer
when used as an array base pointer.Specifically, the following conversions are permitted:
T*
U*
ByteStridedPointer<T>
U*
std::shared_ptr<T>
U*
std::shared_ptr<T>
std::shared_ptr<U>
where
IsElementTypeImplicitlyConvertible<T,U>
istrue
.