Files
ankerl_unordered_dense/example/main.cpp
Martin Leitner-Ankerl 52d0d7420d Updated cmake
Makes the library more easy to use and installable.
2022-08-24 08:16:04 +02:00

14 lines
299 B
C++

#include <ankerl/unordered_dense.h>
#include <iostream>
auto main() -> int {
auto map = ankerl::unordered_dense::map<int, std::string>();
map[123] = "hello";
map[987] = "world!";
for (auto const& [key, val] : map) {
std::cout << key << " => " << val << std::endl;
}
}