Lines Matching defs:LazyInstance
5 // The LazyInstance<Type, Traits> class manages a single instance of Type,
14 // LazyInstance is completely thread safe, assuming that you create it safely.
16 // static constructor. It really only makes sense to declare a LazyInstance as
19 // LazyInstance is similar to Singleton, except it does not have the singleton
20 // property. You can have multiple LazyInstance's of the same type, and each
27 // static LazyInstance<MyClass> my_instance = LAZY_INSTANCE_INITIALIZER;
48 // LazyInstance uses its own struct initializer-list style static
82 // Use LazyInstance<T>::Leaky for a less-verbose call-site typedef; e.g.:
83 // base::LazyInstance<T>::Leaky my_leaky_lazy_instance;
85 // base::LazyInstance<T, base::internal::LeakyLazyInstanceTraits<T> >
124 class LazyInstance {
126 // Do not define a destructor, as doing so makes LazyInstance a
131 // ~LazyInstance() {}
135 typedef LazyInstance<Type, internal::LeakyLazyInstanceTraits<Type> > Leaky;
199 LazyInstance<Type, Traits>* me =
200 reinterpret_cast<LazyInstance<Type, Traits>*>(lazy_instance);