reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
57 : Storage(Other.Storage ? Other.Storage->clone() : nullptr) {} 57 : Storage(Other.Storage ? Other.Storage->clone() : nullptr) {} 81 Storage = std::make_unique<StorageImpl<U>>(std::forward<T>(Value)); 84 Any(Any &&Other) : Storage(std::move(Other.Storage)) {} 87 std::swap(Storage, Other.Storage); 87 std::swap(Storage, Other.Storage); 92 Storage = std::move(Other.Storage); 92 Storage = std::move(Other.Storage); 96 bool hasValue() const { return !!Storage; } 98 void reset() { Storage.reset(); } 115 if (!Value.Storage) 119 return Value.Storage->id() == &Any::TypeId<U>::Id; 146 return &static_cast<Any::StorageImpl<U> &>(*Value->Storage).Value; 154 return &static_cast<Any::StorageImpl<U> &>(*Value->Storage).Value;