A map implementation backed by a sorted SmallVector. Key‐value pairs are stored in contiguous memory ordered by KeyCompare.
Synopsis
Declared in <llvm/ADT/SortedVectorMap.h>
template<
typename KeyT,
typename ValueT,
unsigned int N = 0,
typename KeyCompare = std::less<KeyT>>
class SortedVectorMap;
Type Aliases
Name |
Description |
Contiguous storage type for sorted key/value pairs. |
|
Const iterator over key/value pairs in sorted key order. |
|
Const reverse iterator over key/value pairs. |
|
Mutable iterator over key/value pairs in sorted key order. |
|
Key type stored in the map. |
|
Mapped value type. |
|
Mutable reverse iterator over key/value pairs. |
|
Unsigned size type of the underlying vector. |
|
Key/value pair type stored in the underlying vector. |
Member Functions
Name |
Description |
|
Construct an empty map. |
|
|
Return the capacity of the underlying vector. |
|
Return a const iterator to the first key/value pair. |
|
Return a const iterator past the last key/value pair. |
|
Return a const reverse iterator to the last key/value pair. |
|
Return a const reverse iterator before the first key/value pair. |
|
Return true if the map contains no entries. |
|
|
|
Erase the element at |
|
Find |
|
|
|
Subscript operators |
|
|
|
|
|
Reserve capacity for at least |
|
Return the number of key/value pairs. |
|
|
|
Return true if this map and |
Created with MrDocs