コード例 #1
0
 bool equals (const ValueUnion& data, const ValueUnion& otherData, const VariantType& otherType) const noexcept
 {
     const Array<var>* const otherArray = otherType.toArray (otherData);
     return otherArray != nullptr && *otherArray == *(data.arrayValue);
 }
コード例 #2
0
 bool equals (const ValueUnion& data, const ValueUnion& otherData, const VariantType& otherType) const noexcept override
 {
     auto* thisArray = toArray (data);
     auto* otherArray = otherType.toArray (otherData);
     return thisArray == otherArray || (thisArray != nullptr && otherArray != nullptr && *otherArray == *thisArray);
 }