FastLED 3.9.15
Loading...
Searching...
No Matches

◆ instance()

template<typename T, int N = 0>
static T & fl::Singleton< T, N >::instance ( )
inlinestatic

Definition at line 11 of file singleton.h.

11 {
12 // We love function level singletons!! They don't get construction until first call.
13 // And they seem to have locks on them in most compilers. So yay.
14 static T instance;
15 return instance;
16 }
static T & instance()
Definition singleton.h:11

References instance().

Referenced by fl::EngineEvents::getInstance(), instance(), and instanceRef().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: