26 mContent(other.mContent ? other.mContent->clone() : nullptr)
37 std::swap(mContent, rhs.mContent);
61 return mContent ? mContent->getType() :
typeid(void);
66 __attribute__((no_sanitize(
"vptr")))
70 return mContent ?
static_cast<Any::Holder<void*> *
>(this->mContent)->held :
nullptr;
75 if (mContent ==
nullptr && other.mContent ==
nullptr)
77 return mContent !=
nullptr && other.mContent !=
nullptr && mContent->compare(other.mContent);
Any & operator=(const ValueType &rhs)
void * castUnsafe() const
const std::type_info & getType() const
bool compare(const Any &other) const