About 51 results
Open links in new tab
  1. std::unordered_map - cppreference.com

    Apr 26, 2025 · std::unordered_map is an associative container that contains key-value pairs with unique keys. Search, insertion, and removal of elements have average constant-time complexity.

  2. std::unordered_set - cppreference.com

    Apr 26, 2025 · std::unordered_set is an associative container that contains a set of unique objects of type Key. Search, insertion, and removal have average constant-time complexity.

  3. std::unordered_map<Key,T,Hash,KeyEqual,Allocator>::

    Nov 29, 2021 · 13-15) Initializer-list constructor. Constructs the container with the contents of the initializer list init, same as unordered_map(init.begin(), init.end()). 16-18) Constructs the container …

  4. Standard library header <unordered_set> (C++11) - Reference

    Nov 27, 2023 · Classes unordered_set (C++11) collection of unique keys, hashed by keys (class template) [edit] unordered_multiset (C++11) collection of keys, hashed by keys (class template) [edit]

  5. std::unordered_set<Key,Hash,KeyEqual,Allocator>::

    Nov 21, 2021 · std::unordered_set<Key,Hash,KeyEqual,Allocator>:: unordered_set C++ Containers library

  6. std:: unordered_multimap - cppreference.com

    Apr 26, 2025 · std::unordered_multimap is an unordered associative container that supports equivalent keys (an unordered_multimap may contain multiple copies of each key value) and that associates …

  7. std::unordered_map<Key,T,Hash,KeyEqual,Allocator>:: emplace

    Dec 4, 2021 · unordered_map::merge (C++17) unordered_map::insert unordered_map::insert_range (C++23) unordered_map::insert_or_assign (C++17) unordered_map::emplace …

  8. std::unordered_map<Key,T,Hash,KeyEqual,Allocator>::

    Dec 4, 2021 · Complexity Constant on average, worst case linear in the size of the container. Notes ... Example Run this code #include <cstddef> #include <functional> #include <iostream> #include …

  9. std::unordered_map<Key,T,Hash,KeyEqual,Allocator>:: insert

    May 9, 2025 · unordered_map::merge (C++17) unordered_map::insert unordered_map::insert_range (C++23) unordered_map::insert_or_assign (C++17) unordered_map::emplace …

  10. std::unordered_set<Key,Hash,KeyEqual,Allocator>::

    Jan 12, 2021 · Complexity Given an instance c of unordered_set: 1,2) Average case: constant, worst case: c.size(). 3) Average case: std::distance(first, last), worst case: c.size(). 4) Average case: …