Shows how to use hashtable alias.
#include <xtd/collections/hashtable>
#include <xtd/console>
auto main() -> int {
open_with["txt"] = "notepad.exe";
open_with["bmp"] = "paint.exe";
open_with["dib"] = "paint.exe";
open_with["rtf"] = "wordpad.exe";
open_with["rtf"] = "winword.exe";
open_with["doc"] = "winword.exe";
open_with["ht"] = "hypertrm.exe";
}
for (auto de : open_with)
}
bool contains(const key_t &key) const noexcept
Checks if the container contains element with specific key.
Definition dictionary.hpp:807
const_iterator erase(const_iterator pos)
Erases elements.
Definition dictionary.hpp:950
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
xtd::collections::generic::dictionary< xtd::any_object, xtd::any_object > hashtable
Represents a collection of key/value pairs that are organized based on the hash code of the key.
Definition hashtable.hpp:48
The xtd::collections namespace contains interfaces and classes that define various collections of obj...
Definition any_pair.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8