xtd 0.2.0
Loading...
Searching...
No Matches

◆ dictionary

template<typename key_t , typename value_t >
using xtd::collections::generic::dictionary = typedef std::unordered_map<key_t, value_t, helpers::hasher<key_t>, helpers::equator<key_t>, helpers::allocator<std::pair<const key_t, value_t> >>

Represents a collection of keys and values.

Definition
template<typename key_t, typename value_t>
using dictionary = std::unordered_map<key_t, value_t, helpers::hasher<key_t>, helpers::equator<key_t>, helpers::allocator<std::pair<const key_t, value_t>>>;
std::unordered_map< key_t, value_t, helpers::hasher< key_t >, helpers::equator< key_t >, helpers::allocator< std::pair< const key_t, value_t > > > dictionary
Represents a collection of keys and values.
Definition dictionary.h:36
std::allocator< type_t > allocator
Represent an allocator alias.
Definition allocator.h:35
Implements a function object for performing comparisons. Unless specialised, invokes operator== on ty...
Definition equator.h:37
Header
#include <xtd/collections/dictionary
Namespace
xtd::collections::generic
Library
xtd.core
Remarks
The xtd::collections::generic::dictionary class is same as std::unordered_map.
Examples
The following shows how to use xtd::collections::generic::dictionary.