Implements template type TValueDescriptor, which is, for example, offered by types HashTable and LRUCacheTable.
Specifically, this implementation is used with "sets", hence cases where the full portion of a type that is to be stored in a container should serve as the key to itself.
Type definitions HashSet and LRUCacheSet establish a shortcut to their corresponding base type, which incorporates this helper.
T | The type stored in the container, serving likewise as the key-type. |
Definition at line 66 of file valuedescriptor.inl.
Public Type Index: | |
using | KeyType = T |
using | MappedType = T |
using | StoredType = T |
Public Method Index: | |
KeyType & | Key (T &src) const |
MappedType & | Mapped (T &src) const |
using alib::containers::TIdentDescriptor< T >::KeyType = T |
Exposes template parameter T and thus equals StoredType and MappedType.
Container types typically publish an alias to this type. For example, see KeyType, or see KeyType.
Definition at line 79 of file valuedescriptor.inl.
using alib::containers::TIdentDescriptor< T >::MappedType = T |
Exposes template parameter T and thus equals StoredType and KeyType.
Container types typically publish an alias to this type. For example, see MappedType, or see MappedType.
Definition at line 86 of file valuedescriptor.inl.
using alib::containers::TIdentDescriptor< T >::StoredType = T |
The type stored in the container.
Container types typically publish an alias to this type. For example, see StoredType, or see StoredType.
Definition at line 72 of file valuedescriptor.inl.
|
inline |
Returns the given src as is.
src | The value to extract from. |
Definition at line 91 of file valuedescriptor.inl.
|
inline |
Returns the given src as is.
src | The value to extract from. |
Definition at line 96 of file valuedescriptor.inl.