template<class T, class TTT>
struct TrackedTypeTraitsBase< T, TTT >
A base class template for type traits for objects tracked by a ServiceTracker instance.
It provides the TrackedType
typedef and two dummy method definitions.
Tracked type traits (TTT) classes must additionally provide the following methods:
-
static bool IsValid(const TrackedType& t) Returns
true
if t
is a valid object, false
otherwise.
-
static void Dispose(TrackedType& t) Clears any resources held by the tracked object
t
.
-
static TrackedType DefaultValue() Returns the default value for newly created tracked objects.
- Template Parameters
-
T | The type of the tracked object. |
TTT | The tracked type traits class deriving from this class. |
- See also
- ServiceTracker