-
#include "tensorstore/util/element_traits.h" -
template <class Source, class Dest>
constexpr bool tensorstore::IsElementTypeOnlyExplicitlyConvertible =
(std::is_void_v<Source> > std::is_void_v<Dest>) &&
(std::is_const_v<Source> <= std::is_const_v<Dest>); Metafunction that evaluates
trueif an array ofSource-type elements is explicitly BUT NOT implicitly convertible to an array ofDest-type elements.Explicit conversions are (where
Tindicates a non-const type):const voidconst TvoidTvoidconst TUnlike the implicit conversions, these conversions are not statically known to be valid, and should be checked at run-time.