|
LLVM 24.0.0git
|
A map implementation backed by a sorted SmallVector. More...
#include "llvm/ADT/SortedVectorMap.h"
Public Types | |
| using | key_type = KeyT |
| using | mapped_type = ValueT |
| using | value_type = std::pair<KeyT, ValueT> |
| using | VectorType = SmallVector<value_type, N> |
| using | size_type = typename VectorType::size_type |
| using | iterator = typename VectorType::iterator |
| using | const_iterator = typename VectorType::const_iterator |
Public Member Functions | |
| SortedVectorMap ()=default | |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| bool | empty () const |
| size_type | size () const |
| size_type | capacity () const |
| void | reserve (size_type Cap) |
| template<typename K> | |
| const_iterator | find (const K &Key) const |
| template<typename K> | |
| iterator | find (const K &Key) |
| template<typename... Ts> | |
| std::pair< iterator, bool > | try_emplace (const KeyT &Key, Ts &&...Args) |
| template<typename... Ts> | |
| std::pair< iterator, bool > | try_emplace (KeyT &&Key, Ts &&...Args) |
| std::pair< iterator, bool > | insert (const value_type &KV) |
| std::pair< iterator, bool > | insert (value_type &&KV) |
| ValueT & | operator[] (const KeyT &Key) |
| ValueT & | operator[] (KeyT &&Key) |
| iterator | erase (iterator Pos) |
| iterator | erase (const_iterator Pos) |
| bool | operator== (const SortedVectorMap &Other) const |
A map implementation backed by a sorted SmallVector.
Key-value pairs are stored in contiguous memory ordered by KeyCompare.
Definition at line 47 of file SortedVectorMap.h.
| using llvm::SortedVectorMap< KeyT, ValueT, N, KeyCompare >::const_iterator = typename VectorType::const_iterator |
Definition at line 56 of file SortedVectorMap.h.
| using llvm::SortedVectorMap< KeyT, ValueT, N, KeyCompare >::iterator = typename VectorType::iterator |
Definition at line 55 of file SortedVectorMap.h.
| using llvm::SortedVectorMap< KeyT, ValueT, N, KeyCompare >::key_type = KeyT |
Definition at line 49 of file SortedVectorMap.h.
| using llvm::SortedVectorMap< KeyT, ValueT, N, KeyCompare >::mapped_type = ValueT |
Definition at line 50 of file SortedVectorMap.h.
| using llvm::SortedVectorMap< KeyT, ValueT, N, KeyCompare >::size_type = typename VectorType::size_type |
Definition at line 53 of file SortedVectorMap.h.
| using llvm::SortedVectorMap< KeyT, ValueT, N, KeyCompare >::value_type = std::pair<KeyT, ValueT> |
Definition at line 51 of file SortedVectorMap.h.
| using llvm::SortedVectorMap< KeyT, ValueT, N, KeyCompare >::VectorType = SmallVector<value_type, N> |
Definition at line 52 of file SortedVectorMap.h.
|
default |
|
inline |
Definition at line 105 of file SortedVectorMap.h.
|
inline |
Definition at line 107 of file SortedVectorMap.h.
|
inline |
Definition at line 113 of file SortedVectorMap.h.
|
inlinenodiscard |
Definition at line 111 of file SortedVectorMap.h.
|
inline |
Definition at line 106 of file SortedVectorMap.h.
|
inline |
Definition at line 108 of file SortedVectorMap.h.
|
inline |
Definition at line 155 of file SortedVectorMap.h.
|
inline |
Definition at line 154 of file SortedVectorMap.h.
|
inline |
Definition at line 123 of file SortedVectorMap.h.
|
inline |
Definition at line 118 of file SortedVectorMap.h.
|
inline |
Definition at line 138 of file SortedVectorMap.h.
|
inline |
Definition at line 142 of file SortedVectorMap.h.
|
inline |
Definition at line 157 of file SortedVectorMap.h.
|
inline |
Definition at line 146 of file SortedVectorMap.h.
|
inline |
Definition at line 150 of file SortedVectorMap.h.
|
inline |
Definition at line 114 of file SortedVectorMap.h.
|
inline |
Definition at line 112 of file SortedVectorMap.h.
|
inline |
Definition at line 129 of file SortedVectorMap.h.
|
inline |
Definition at line 134 of file SortedVectorMap.h.