Lines Matching refs:T
60 template <typename T>
67 new (storage_) T(std::forward<Args>(args)...); in NoDestructor()
72 explicit NoDestructor(const T& x) { new (storage_) T(x); } in NoDestructor()
73 explicit NoDestructor(T&& x) { new (storage_) T(std::move(x)); } in NoDestructor()
80 const T& operator*() const { return *get(); }
81 T& operator*() { return *get(); }
83 const T* operator->() const { return get(); }
84 T* operator->() { return get(); }
86 const T* get() const { return reinterpret_cast<const T*>(storage_); } in get()
87 T* get() { return reinterpret_cast<T*>(storage_); } in get()
90 alignas(T) char storage_[sizeof(T)];