A map/dictionary collection implementation using a fixed amount of storage, so that it does not perform any dynamic allocations for its operations.
More...
template<size_t KeySize = 256, size_t ValueSize = 256, size_t NumEntries = 64>
class crashpad::TSimpleStringDictionary< KeySize, ValueSize, NumEntries >
A map/dictionary collection implementation using a fixed amount of storage, so that it does not perform any dynamic allocations for its operations.
The actual map storage (TSimpleStringDictionary::Entry) is guaranteed to be POD, so that it can be transmitted over various IPC mechanisms.
The template parameters control the amount of storage used for the key, value, and map. The KeySize and ValueSize are measured in bytes, not glyphs, and include space for a trailing NUL
byte. This gives space for KeySize - 1
and ValueSize - 1
characters in an entry. NumEntries is the total number of entries that will fit in the map.
template<size_t KeySize = 256, size_t ValueSize = 256, size_t NumEntries = 64>
Stores value into key, replacing the existing value if key is already present.
If key is not yet in the map and the map is already full (containing NumEntries active entries), this operation silently fails.
- Parameters
-
[in] | key | The key to store. This must not be nullptr , nor an empty string. It must not contain embedded NUL s. |
[in] | value | The value to store. If nullptr , key is removed from the map. Must not contain embedded NUL s. |