template<typename KeyT, typename ValueT, typename Hash = hash<KeyT>, typename Alloc = allocator<pair<KeyT, ValueT>>>
struct fennec::map< KeyT, ValueT, Hash, Alloc >
| Property | Value |
| stable | ⛔ |
| dynamic | ✅ |
| homogenous | ✅ |
| distinct | ✅ |
| ordered | ⛔ |
| space | \(O(N)\) |
| linear | ✅ |
| access | \(O(1)\) |
| find | \(O(1)\) |
| insertion | \(O(1)\) |
| deletion | \(O(1)\) |
- Template Parameters
-
| KeyT | The Key Type |
| ValueT | The Value Type |
| Hash | The Hash to Use |
| Alloc | The Allocator to Use |
|
|
|
constexpr | map ()=default |
| | Default Constructor, initializes empty map.
|
| |
|
constexpr | ~map ()=default |
| | Destructor, Destructs all elements and releases the allocation.
|
| |
|
| constexpr size_t | size () const |
| |
| constexpr size_t | empty () const |
| |
| constexpr size_t | capacity () const |
| |
|
| constexpr value_t * | operator[] (const KeyT &key) |
| | Key Access Operator.
|
| |
| constexpr const value_t * | operator[] (const KeyT &key) const |
| | Key Const Access Operator.
|
| |
| template<typename... ArgsT> |
| constexpr value_t * | operator[] (ArgsT &&...args) |
| | Argument Key Access Operator.
|
| |
| template<typename... ArgsT> |
| constexpr const value_t * | operator[] (ArgsT &&...args) const |
| | Argument Key Const Access Operator.
|
| |
|
| constexpr void | insert (elem_t &&pair) |
| | Key-Value Insertion.
|
| |
| template<typename... ArgsT> |
| constexpr void | emplace (const KeyT &key, ArgsT &&...args) |
| | Key-Value Insertion.
|
| |
| template<typename... ArgsT> |
| constexpr void | emplace (ArgsT &&...args) |
| | Key-Value Insertion.
|
| |
| constexpr void | erase (KeyT &&key) |
| | Erase a key.
|
| |
| constexpr void | erase (const KeyT &key) |
| | Erase a key.
|
| |
| template<typename... ArgsT> |
| constexpr void | erase (ArgsT &&...args) |
| | Argument Erase.
|
| |
|
void | clear () |
| | Clears the map destructing all elements.
|
| |
|
| constexpr iterator | begin () |
| | C++ Iterator Specification begin()
|
| |
| constexpr iterator | end () |
| | C++ Iterator Specification end()
|
| |