5#ifndef ACCESSIBILITY_BASE_NO_DESTRUCTOR_H_
6#define ACCESSIBILITY_BASE_NO_DESTRUCTOR_H_
52 template <
typename... Args>
54 new (storage_)
T(std::forward<Args>(
args)...);
73 const T*
get()
const {
return reinterpret_cast<const T*
>(storage_); }
74 T*
get() {
return reinterpret_cast<T*
>(storage_); }
77 alignas(
T)
char storage_[
sizeof(
T)];
79#if defined(LEAK_SANITIZER)
92 T* storage_ptr_ =
reinterpret_cast<T*
>(storage_);
const T * operator->() const
NoDestructor & operator=(const NoDestructor &)=delete
const T & operator*() const
NoDestructor(Args &&... args)
NoDestructor(const NoDestructor &)=delete
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args