-
#include "tensorstore/util/element_traits.h" -
template <typename A, typename B>
constexpr bool tensorstore::AreElementTypesCompatible =
(std::is_void_v<A> || std::is_void_v<B> ||
std::is_same_v<const A, const B>); Metafunction that evaluates to whether
AandBcould refer to the same type, ignoring const.Compatible
TTtrueconst TTtrueTconst Ttrueconst Tconst Ttrueconst Tvoidtrueconst Tconst voidtrueTvoidtrueTconst voidtruevoidconst Ttrueconst voidconst TtruevoidTtrueconst voidTtrueTUfalseconst TUfalseTconst Ufalseconst Tconst Ufalse