|
template<typename T , typename Destroyer > |
void | Loki::SetLongevity (T *pDynObject, unsigned int longevity, Destroyer d) |
|
The lifetimes of the singleton.
- Special lifetime for SmallObjects
- When the holded object is a Small(Value)Object or the holded object uses objects which are or inherit from Small(Value)Object then you can't use the default lifetime: you must use the lifetime
Definition: SmallObj.h:74
Be aware of this when you use Loki::Factory, Loki::Functor, or Loki::Function.
◆ SetLongevity()
template<typename T , typename Destroyer >
void Loki::SetLongevity |
( |
T * |
pDynObject, |
|
|
unsigned int |
longevity, |
|
|
Destroyer |
d |
|
) |
| |
Assigns an object a longevity; ensures ordered destructions of objects registered thusly during the exit sequence of the application