HDK
|
#include <UT_StaticInit.h>
Public Types | |
typedef GusdUT_StaticValHolder < Fn > | This |
using | T = decltype(std::declval< Fn & >()()) |
Public Member Functions | |
GusdUT_StaticValHolder (Fn &fn) | |
GusdUT_StaticValHolder (This &&o) noexcept | |
~GusdUT_StaticValHolder () | |
T & | operator* () |
T * | operator-> () |
T * | get () |
Helper for creating a static value, whose construction is deferred and backed by a lock. This is similar to UT_SingletonWithLock, except that the value held is the result of calling method, rather than constructing an object.
Example usage:
Definition at line 53 of file UT_StaticInit.h.
using GusdUT_StaticValHolder< Fn >::T = decltype(std::declval<Fn&>()()) |
Definition at line 57 of file UT_StaticInit.h.
typedef GusdUT_StaticValHolder<Fn> GusdUT_StaticValHolder< Fn >::This |
Definition at line 56 of file UT_StaticInit.h.
|
inline |
Definition at line 59 of file UT_StaticInit.h.
|
inlinenoexcept |
Definition at line 62 of file UT_StaticInit.h.
|
inline |
Definition at line 69 of file UT_StaticInit.h.
|
inline |
Definition at line 75 of file UT_StaticInit.h.
|
inline |
Definition at line 72 of file UT_StaticInit.h.
|
inline |
Definition at line 73 of file UT_StaticInit.h.