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 75 of file valuedescriptor.hpp.
#include <valuedescriptor.hpp>
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 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 88 of file valuedescriptor.hpp.
using 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 95 of file valuedescriptor.hpp.
using 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 81 of file valuedescriptor.hpp.
|
inline |
Returns the given src as is.
src | The value to extract from. |
Definition at line 100 of file valuedescriptor.hpp.
|
inline |
Returns the given src as is.
src | The value to extract from. |
Definition at line 105 of file valuedescriptor.hpp.