psychic-ui 0.0.0
Loading...
Searching...
No Matches
psychic_ui::NoDestructor< T > Class Template Reference

#include <NoDestructor.hpp>

Public Member Functions

template<class... Args>
 NoDestructor (Args &&...args)
 NoDestructor (const NoDestructor &)=delete
NoDestructor & operator= (const NoDestructor &)=delete
 NoDestructor (NoDestructor &&)=delete
NoDestructor & operator= (NoDestructor &&)=delete
T & operator* ()
T * operator-> ()

Detailed Description

template<class T>
class psychic_ui::NoDestructor< T >

Holds a T constructed in place in storage of its own and never destroyed, like Chromium's base::NoDestructor: for a function-local static that must outlive every static object that may still use it.


The documentation for this class was generated from the following file: